diff options
author | Nat <natcl@hotmail.com> | 2007-07-05 18:15:55 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-05 18:15:55 (GMT) |
commit | b601c94093515d3ea5f77efefc494c9ac2b578a1 (patch) | |
tree | 9d2bf6835cafd1551e5996c411d22c7d79198164 /TamTam.py | |
parent | 538641ef9d8061e37628c57f66a20b322b9af90c (diff) |
New aclient for python2.5, save stuff
Diffstat (limited to 'TamTam.py')
-rwxr-xr-x | TamTam.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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__": |