diff options
author | Aleksey Lim <alsroot@activitycentral.org> | 2011-06-21 19:47:08 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@activitycentral.org> | 2011-06-21 19:47:08 (GMT) |
commit | 52c8b44fd8e32f0748acfbf3871f86a143d769d3 (patch) | |
tree | ae496781254672a44f2f3298cb003915a199714d /document.py | |
parent | d5e508b32ecb3fca87f653dc05e7bcb43e6f5b79 (diff) | |
parent | 94fa1ed47477f1c4b2bc4bd96325ce388e0bdad0 (diff) |
Fix merge
Diffstat (limited to 'document.py')
-rw-r--r-- | document.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/document.py b/document.py index 99f1a04..a7d9e91 100644 --- a/document.py +++ b/document.py @@ -37,17 +37,19 @@ class Document: for i in range(theme.TAPE_COUNT): tape.append(EmptyFrame()) + def clean(index): from char import Frame Document.tape[index] = EmptyFrame() + def save(filepath): tar = Tarball(filepath, 'w') - cfg = { 'ground': {}, - 'sound' : {}, + cfg = {'ground': {}, + 'sound': {}, 'frames': {}, - 'tape' : [] } + 'tape': []} def _save(node, arcname, value): if value.custom(): @@ -79,6 +81,7 @@ def save(filepath): tar.write('MANIFEST', json.dumps(cfg)) tar.close() + def load(filepath): try: tar = Tarball(filepath) |