[Zope] automagic reindexing of objects
Jürgen Herrmann
Juergen.Herrmann at XLhost.de
Wed Jun 22 09:17:19 EDT 2005
[ Jürgen Herrmann wrote:]
...
> hook = object.get('_before_transaction_commit', None)
> if hook: hook()
...
of course it should be:
getattr(object, '_before_transaction_commit', None)
regards, juergen herrmann
_______________________________________________________________________
>> XLhost.de - eXperts in Linux hosting <<
Juergen Herrmann
Weiherweg 10, 93051 Regensburg, Germany
Fon: +49 (0)700 XLHOSTDE [0700 95467833]
Fax: +49 (0)721 151 463027
ICQ: 27139974 - IRC: #XLhost at quakenet
WEB: http://www.XLhost.de
More information about the Zope
mailing list