[Zope3-dev] Re: emit ObjectModifiedEvent when object changed and zodb noticed?

Tres Seaver tseaver at palladion.com
Tue Sep 26 13:38:17 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Withers wrote:
> Hi All,
> 
> Just been wondering about the need to retrofit:
> 
> notify(ObjectModifiedEvent(self))
> 
> ...into lots of code. Can we do anything less intrusive?
> 
> I mean, if a non-Zope object has changed, why should it have to think
> about emitting events?

I would say that, in general, "view code" should be emitting the events,
rather than content objects.

> In any case, could we do anything clever to do with event emitting when
> objects are committed to the zodb?

No.

- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFGWWJ+gerLs4ltQ4RArOJAKCKyEgScvygoFXO1OSKp+8T4IsFZACglTnW
OHC83OO1LK2vtvqDWwYiXG8=
=ePmE
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list