appy.gen: bugfixes.

This commit is contained in:
Gaetan Delannay 2012-05-09 09:45:15 +02:00
parent 8cc20b0d34
commit d3a2b85a10
3 changed files with 30 additions and 17 deletions

View file

@ -340,7 +340,8 @@ class BaseMixin:
obj = self.getTool().getObject(rq['objectUid'])
else:
obj = self
return obj.getMethod('on'+action)()
if rq.get('appy', None) == '1': obj = obj.appy()
return getattr(obj, 'on'+action)()
def rememberPreviousData(self):
'''This method is called before updating an object and remembers, for