[Zope] adding properties trough pythonscript

Sean Hastings whysean at softhome.net
Tue Oct 19 14:29:23 EDT 2004


>
> I've seen a few cases where the following happens,
> * A new story comes into the system from the feeds subsystem.
>
> * The feeds subsystem sends a "new content" message the event channel.
>
> * The event channel invokes  page creation subsystem creates a new
> page. (doing a little "self._setObject( id, page );page = self._getOb(
> id )" dance to get a wrapped object instance and at that point altering
> the persistent state)
>
> * The page creation system then starts adding items to the page. One of
> them throws an exception, that is caught in the event channel that
> invoked it.
>
> The end result is a page that is missing some of its critical
> components.
>

And this is not just a case where the missing components would have been
added after the point in the control flow where the Exception was thrown,
but before it was caught?



More information about the Zope mailing list