Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-09-22 14:58:44 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-09-22 14:58:44 (GMT)
commit223f57dea940a4932277ae7e16cd30e1c04fe9df (patch)
tree192f6f32046d0bbb0f5b8f65ad58df65329f57c3 /activity.py
parent4748b7c070c88c6827fcef1e9cebb33fb30848d3 (diff)
Set the name in the game with the activity title
This is needed because now we do not have a separated widget to set the game name. If the game name is not present, the generated xml file is not valid. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index f6d822e..d2a99df 100644
--- a/activity.py
+++ b/activity.py
@@ -272,6 +272,7 @@ class MemorizeActivity(Activity):
os.path.join('sounds', bsnd))
self.game.model.game_path = self.game.model.temp_folder
+ self.game.model.data['name'] = str(self.get_title())
self.game.model.write()
game_zip.write(os.path.join(self.game.model.temp_folder, 'game.xml'),
'game.xml')