[Zope3-Users] Sorry about that last email

2007-05-11 Thread Greg Baker
Hrm, it appears that ctrl-enter in kmail actually sends emails...  Sorry about 
that last one..

Anyway, my question:

interfaces.py:
--
class IReport(Interface):
containers(IReportContainer)

class IReportContainer(IContainer):
contains(IReport)


the above two classes reside in the same module, interfaces.py...  Since they 
both depend on each other, I am having the problem of a circular dependency.  
How can I resolve this?

Greg
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Sorry about that last email

2007-05-11 Thread Adam Groszer
Hello Greg,

Quite easily, you can write:

contains('mypackage.package.IReport')

That gets not resolved at import time.

Friday, May 11, 2007, 1:43:44 PM, you wrote:

GB Hrm, it appears that ctrl-enter in kmail actually sends emails... Sorry 
about
GB that last one..

GB Anyway, my question:

GB interfaces.py:
GB --
GB class IReport(Interface):
GB containers(IReportContainer)

GB class IReportContainer(IContainer):
GB contains(IReport)


GB the above two classes reside in the same module, interfaces.py... Since they
GB both depend on each other, I am having the problem of a circular dependency.
GB How can I resolve this?

GB Greg
GB ___
GB Zope3-users mailing list
GB Zope3-users@zope.org
GB http://mail.zope.org/mailman/listinfo/zope3-users


-- 
Best regards,
 Groszer Adam
--
Quote of the day:
Katz' Law: Man and nations will act rationally when all other possibilities 
have been exhausted.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users