[Zope3-Users] Vocabulary with objects and persistence problem

Nylan Nylan at gmx.net
Fri Apr 3 11:08:28 EDT 2009


Hello,
I'm having some weird problem using objects references in a vocabulary.

Following situation:
Container A -  Objects type X
Container B -  objects type Y with zope.schema.Choice based on vocabulary of
objects X

After deleting object X1 in container A and removing manually(ObjectRemovedEvent
iterating container B, removing reference and transaction.commit) the reference
in object Y, X1 doesn't show up and everything looks fine.

After restarting zope i get a LookupError. Object Y has again a reference to X
in the list.

It happens only when deleting some object X referenced in Object Y. Changing
other attributes of Object Y works fine.

Do i miss something?

Best regards!

Nylan






More information about the Zope3-users mailing list