Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/document.py
diff options
context:
space:
mode:
Diffstat (limited to 'document.py')
-rw-r--r--document.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/document.py b/document.py
index 8d43895..9273f2c 100644
--- a/document.py
+++ b/document.py
@@ -47,7 +47,7 @@ def save(filepath):
if value.custom():
node['custom'] = True
node['filename'] = arcname
- zip.writestr(arcname, value.read())
+ zip.writestr(arcname, value.serialize())
else:
node['custom'] = False
node['name'] = unicode(value.name)
@@ -60,7 +60,7 @@ def save(filepath):
[i for i in set(Document.tape) if not i.empty() and i.custom()]):
arcname = 'frame%03d.png' % i
cfg['frames'][frame.id] = arcname
- zip.writestr(arcname, frame.read())
+ zip.writestr(arcname, frame.serialize())
for i, frame in enumerate(Document.tape):
if not frame.empty():