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

-- 
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to