diff options
author | Aleksey 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) |
commit | da1df8da094da605786faeb2fa6d7ba5ab6b4928 (patch) | |
tree | 52828aba3232a7c585c8398bd7175d18dd089666 /document.py | |
parent | c1954705fa0123dc91265098b3e375b4919572de (diff) |
Add collab code
Diffstat (limited to 'document.py')
-rw-r--r-- | document.py | 4 |
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(): |