[Zope3-dev] How to resolve bi-directionally navigable association?

Adam Groszer adamg at fw.hu
Mon Aug 8 12:43:22 EDT 2005


Sorry for the crosspost, may I have some expert advice on the
following:

As the subject sais, how can I resolve bi-directionally navigable
association in Z3?
Both objects have to have references of each other, that means that
also the schemas have to have references.

class IItem(interface):
    unit = Object(
        title=u"Unit",
        description=u"Unit",
        required = False,
        schema=IUnit)

class IUnit(interface):
    item = Object(
        title=u"Item",
        description=u"Item",
        required = False,
        schema=IItem)

but obviously that does not work, I cannot define one before the
other.

-- 
Best regards,
 Adam                          mailto:adamg at fw.hu



More information about the Zope3-dev mailing list