Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-03-01 00:18:41 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-03-02 06:32:19 (GMT)
commit81e0d016f0fe6784eca1d6d7577576c5706df43d (patch)
treecf6999546297bdad81a533bd75f607a5d2685d15
parentaf8c72e32f9590c4498a7f98e640239ce60cd4d9 (diff)
Save data in can_close() instead of write_file() to prevent saving data on each set_active() invoking
-rw-r--r--activity.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index 4400bb3..c6b8655 100644
--- a/activity.py
+++ b/activity.py
@@ -43,7 +43,13 @@ class InfoslicerActivity(SharedActivity):
pass
def write_file(self, filepath):
+ # XXX this method will be invoked on every props.status changing
+ # thus ignore it and use can_close() instead to save data on exit
+ pass
+
+ def can_close(self):
book.teardown()
+ return True
def _init_cb(self, sender):
book.init()