Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/document.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-09 10:23:32 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-02-09 10:23:32 (GMT)
commitda1df8da094da605786faeb2fa6d7ba5ab6b4928 (patch)
tree52828aba3232a7c585c8398bd7175d18dd089666 /document.py
parentc1954705fa0123dc91265098b3e375b4919572de (diff)
Add collab code
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():