[Zope-CMF] ZMI edits and reindexing
Florent Guillaume
fg@nuxeo.com
Sun, 4 Aug 2002 23:18:23 +0000 (UTC)
Dieter Maurer <dieter@handshake.de> wrote:
> Florent Guillaume writes:
> > ...
> > def _setPropValue(self, id, value):
> > self._wrapperCheck(value)
> > old_value = getattr(aq_base(self), id, None)
> > setattr(self, id, value)
> > if hasattr(aq_base(self), 'manage_afterPropertyChange'):
> > self.manage_afterPropertyChange(id, old_value)
> That's called very often (for each single property).
> I would prefer it in "manage_changeProperties" and friends.
Oh I was not suggesting to put it into Zope, it was just an example of a
hack that works.
Food for thought.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com