Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-12-11 23:00:22 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-12-11 23:00:22 (GMT)
commitf7a43a4ad3b63859e4a534b3e8648100590cc3c3 (patch)
tree39053ce0c67a1500c979cc30d5334e4d52b5de40 /activity.py
parent324fb287d7b540bbb09a58350e2614507ed5c530 (diff)
add tracing; minor bug fixes
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/activity.py b/activity.py
index 4bf6a49..79e32bd 100644
--- a/activity.py
+++ b/activity.py
@@ -41,6 +41,7 @@ from sugar.graphics.alert import ConfirmationAlert
from sugar.graphics.toolbarbox import ToolbarBox
from sugar.graphics.toolbarbox import ToolbarButton
from sugar.graphics.style import GRID_CELL_SIZE
+from sugar.datastore import datastore
import tools
import physics
@@ -239,7 +240,7 @@ class PhysicsActivity(activity.Activity):
clear_all_alert = ConfirmationAlert()
clear_all_alert.props.title = _('Are You Sure?')
clear_all_alert.props.msg = \
- _('All you work will be discarded. This cannot be undone!')
+ _('All your work will be discarded. This cannot be undone!')
clear_all_alert.connect('response', clear_all_alert_cb)
self.add_alert(clear_all_alert)
@@ -275,7 +276,7 @@ class PhysicsActivity(activity.Activity):
jsonfile.write(json.dumps(data))
jsonfile.close()
- jobject.set_file_path(os.path.abspath(csvfile.name))
+ jobject.set_file_path(os.path.abspath(jsonfile.name))
datastore.write(jobject)
def _export_csv_cb(self, button):