[Zope3-Users] Vocabulary with objects and persistence problem

Warner, Christopher christopher.warner at nymag.com
Fri Apr 3 11:14:30 EDT 2009


Are you sure the transaction commit isn't failing in some way?

-- 
Christopher Warner
Manager, Content Management Systems
New York Media | 75 Varick St, 4th Fl
New York, NY 10013
phone: 212.508.0542
cell: 646.334.6780



On 4/3/09 11:08 AM, "Nylan" <Nylan at gmx.net> wrote:

> 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
> 
> 
> 
> 
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users



More information about the Zope3-users mailing list