Implemented the refactored OOBHandler. Much cleaner and straightforward now. Not tested yet though.

This commit is contained in:
Griatch 2015-02-12 21:59:11 +01:00
parent 03b4b9ddb4
commit 156d80b7bb
3 changed files with 238 additions and 207 deletions

View file

@ -348,9 +348,9 @@ class SharedMemoryModel(Model):
_GA(self, hookname)()
# if a trackerhandler is set on this object, update it with the
# fieldname and the new value
trackername = "_oob_at_%s_postsave" % fieldname
if hasattr(self, trackername):
_GA(self, trackername).trigger_update(fieldname, _GA(self, fieldname))
fieldtracker = "_oob_at_%s_postsave" % fieldname
if hasattr(self, fieldtracker):
_GA(self, fieldtracker)(_GA(self, fieldname), self)
class WeakSharedMemoryModelBase(SharedMemoryModelBase):