From 328cf6e92fe41302742f4026a8360cf0c3a2392a Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Fri, 7 Aug 2009 14:11:54 -0700 Subject: [PATCH] Add a hook which is run each #save - This ends the need for a personal local change... should have done this long ago. darcs-hash:20090807211154-82ea9-8b3e00919a311bdd706c3464f707346b02ef0b75.gz --- meeting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meeting.py b/meeting.py index a9a0bcf..cb5c8af 100644 --- a/meeting.py +++ b/meeting.py @@ -191,6 +191,8 @@ class Config(object): text = self.enc(text) if isinstance(text, (str, unicode)): self.writeToFile(text, rawname+extension) + if hasattr(self, 'save_hook'): + self.save_hook() def writeToFile(self, string, filename): """Write a given string to a file""" # The reason we have this method just for this is to proxy