Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Silva <sebastian@somosazucar.org>2013-04-25 05:48:19 (GMT)
committer Sebastian Silva <sebastian@somosazucar.org>2013-04-25 05:48:19 (GMT)
commit712db13f38e090e2a5fb1b11b03b9af33f90202e (patch)
tree41d599ce9e0e985242254185d9b2bc89c5560741
parent201e6a1973050e4b3063dc440310ef7215ae6d9c (diff)
fix artifact download
-rw-r--r--sugar_network_webui/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network_webui/app.py b/sugar_network_webui/app.py
index f4b13ec..a89e810 100644
--- a/sugar_network_webui/app.py
+++ b/sugar_network_webui/app.py
@@ -324,7 +324,7 @@ def artifact_copy(guid):
blob = artifact.get_blob('data')
document_path = get_documents_path()
with file(os.path.join(document_path, filename), 'w') as f:
- f.write(blob)
+ f.write(blob.read())
title = _('Artifact has been downloaded.')
body = _('Success!\n\n'
'File %s has been copied to your Documents folder.\n'