Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Lewis <jtl1728@rit.edu>2009-12-15 22:01:50 (GMT)
committer Justin Lewis <jtl1728@rit.edu>2009-12-15 22:01:50 (GMT)
commit511312a6b1a935ba6fd62f3da5fdaba5561287fa (patch)
treedf2b2a3d307e8bafa8231ad2bd73ed5afe5a0086
parent36c207fad0660015e1728a709f457d4a5ebe1e0f (diff)
Fixed bug when installing download (broke in a resent commit)
-rw-r--r--FileShare.activity/FileShareActivity.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/FileShare.activity/FileShareActivity.py b/FileShare.activity/FileShareActivity.py
index dc6ba35..7ce7def 100644
--- a/FileShare.activity/FileShareActivity.py
+++ b/FileShare.activity/FileShareActivity.py
@@ -476,9 +476,9 @@ class FileShareActivity(Activity):
# Set status to downloaded
self.progress_set( fileId, 100, _("Saving File"))
- self._installBundle( tmp_file )
+ metadata = self._installBundle( tmp_file )
- self._alert( _("File Downloaded"), bundle.get_metadata()['title'])
+ self._alert( _("File Downloaded"), metadata['title'])
self.progress_set( fileId, 100, _("Download Complete"))
@@ -510,6 +510,7 @@ class FileShareActivity(Activity):
_logger.debug("Saving %s to datastore...", tmp_file)
bundle = journalentrybundle.JournalEntryBundle(tmp_file)
bundle.install()
+ return bundle.get_metadata()
def write_file(self, file_path):