[Zope] Catch Creation of new objects
Dieter Maurer
dieter at handshake.de
Wed Dec 10 14:36:57 EST 2003
Holger Schmidt wrote at 2003-12-10 16:13 +0100:
>I am able to catch modification of Zope-Standard-Objects with a
>monkey-patch (look at "[Zope]Catch Object Changes" from 2003-11-28 and
>following mails).
>Is there a possibility to catch Objects that are created at the moment
>...?
>If I create Objects they seem not to be commited, otherwise I would
>get them with my monkey-patch.
New objects are only relevant when they became part of a persistent
object. In this case, this persistent object has been modified
(in fact a requirement not a consequence).
When a persistent object is serialized, its persistent subobjects
are examined. This examination detects new (relevant) objects and serializes
them as well.
As you (hopefully) see from this description, there is no easy
way to get hand on the relevant object creations -- unless
you hook the serialization process.
--
Dieter
More information about the Zope
mailing list