Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-08-18 13:56:31 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-08-18 13:56:31 (GMT)
commit694a88119122c952d6f649884a09417acb5eb39a (patch)
treec6bb1e744960f2676e8f388191668f8b22871e5c
parent71e4e4705b3e52cbd2f3a9e176b19bc8ceb3adbd (diff)
using get_title() for creating names for journal objects
-rw-r--r--TurtleArtActivity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index 8852984..ba03470 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -578,7 +578,7 @@ class SaveAsToolbar(gtk.Toolbar):
# Write any metadata (here we specifically set the title of the file
# and specify that this is a plain text file).
- dsobject.metadata['title'] = "Turtle Art portfolio"
+ dsobject.metadata['title'] = self.activity.get_title() + " portfolio"
dsobject.metadata['icon-color'] = profile.get_color().to_string()
if embed_flag == True:
dsobject.metadata['mime_type'] = 'text/html'
@@ -607,7 +607,7 @@ class SaveAsToolbar(gtk.Toolbar):
# Write any metadata (here we specifically set the title of the file
# and specify that this is a plain text file).
- dsobject.metadata['title'] = filename
+ dsobject.metadata['title'] = self.activity.get_title() + ".lg"
dsobject.metadata['mime_type'] = 'text/plain'
dsobject.metadata['icon-color'] = profile.get_color().to_string()
@@ -675,7 +675,7 @@ class SaveAsToolbar(gtk.Toolbar):
dsobject = datastore.create()
# Write metadata
- dsobject.metadata['title'] = "Turtle Art image"
+ dsobject.metadata['title'] = self.activity.get_title() + " image"
dsobject.metadata['icon-color'] = profile.get_color().to_string()
dsobject.metadata['mime_type'] = 'image/png'
dsobject.set_file_path(pngfile)
@@ -947,7 +947,7 @@ class ProjectToolbar(gtk.Toolbar):
dsobject = datastore.create()
# Write any metadata
- dsobject.metadata['title'] = "Turtle Art snapshot"
+ dsobject.metadata['title'] = self.activity.get_title() + " snapshot"
dsobject.metadata['icon-color'] = profile.get_color().to_string()
dsobject.metadata['mime_type'] = 'application/x-turtle-art'
dsobject.metadata['activity'] = 'org.laptop.TurtleArtActivity'