Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network_webui/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network_webui/app.py')
-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'