diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-10 21:16:48 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-10 21:16:48 (GMT) |
commit | 05a9623d0a3e48dbcf84a0123682872c6bb5d16b (patch) | |
tree | defe7f3fed87ee637a7a4f5546462a396458dba3 /activity.py | |
parent | 0a662a86ca89e39bebbcc9f08c919ff0fa0efa57 (diff) |
Refactoring model, checkpoint #3
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/activity.py b/activity.py index ab16e94..8295646 100644 --- a/activity.py +++ b/activity.py @@ -23,6 +23,7 @@ from dbus import Interface from dbus.service import method, signal from dbus.gobject_service import ExportedGObject +import model from theme import * from flipsticks import flipsticks @@ -55,16 +56,9 @@ class flipsticksActivity(activity.Activity): innerframe.add(self.app.main) self.set_canvas(outerframe) - """ def read_file(self, filepath): - f = file(filepath) - sdata = f.read() - f.close() - self.app.restore(sdata) + model.load(filepath) + self.app.restore() def write_file(self, filepath): - sdata = self.app.getsdata() - f = open(filepath,'w') - f.write(sdata) - f.close() - """ + model.save(filepath) |