Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTam.py
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-07-05 18:15:55 (GMT)
committer Nat <natcl@hotmail.com>2007-07-05 18:15:55 (GMT)
commitb601c94093515d3ea5f77efefc494c9ac2b578a1 (patch)
tree9d2bf6835cafd1551e5996c411d22c7d79198164 /TamTam.py
parent538641ef9d8061e37628c57f66a20b322b9af90c (diff)
New aclient for python2.5, save stuff
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/TamTam.py b/TamTam.py
index 3571005..7dd74b1 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -223,11 +223,16 @@ class TamTam(Activity):
os.system('chmod 0777 ' + Config.PREF_DIR + '/' + snd + ' &')
def read_file(self,file_path):
- if self.modeList['edit']:
- self.modeList['edit'].handleJournalLoad(file_path)
+ subactivity_name = self.metadata['tamtam_subactivity']
+ if subactivity_name:
+ self.set_mode(subactivity_name)
+ self.modeList['subactivity_name'].handleJournalLoad(file_path)
+
def write_file(self,file_path):
- if self.modeList['edit']:
- self.modeList['edit'].handleJournalSave(file_path)
+ if self.mode == 'edit':
+ self.metadata['tamtam_subactivity'] = self.mode
+ self.modeList[self.mode].handleJournalSave(file_path)
+
if __name__ == "__main__":