[Zope3-Users] Interfaces with circular references
Hermann Himmelbauer
dusty at qwer.tk
Fri Sep 21 08:03:01 EDT 2007
Hi,
Does someone know how to create interfaces with circular references?
E.g.:
class IHusband(Interface):
wife = Object(schema=IWife)
class IWife(Interface):
husband = Object(schema=IHusband)
What's the suggested solution to this problem?
Perhaps I should modify the classes after they are declared, e.g.:
class IHusband(Interface):
pass
class IWife(Interface):
pass
IHusband.wife = Object(schema = IWife)
IWife.husband = Object(schema = IHusband)
Or is there a better solution?
Best Regards,
Hermann
--
x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
More information about the Zope3-users
mailing list