Monday, August 8, 2005, 5:53:54 PM, you wrote:
> You should look at the Zope 3 Developer's Handbook. Maybe this part:
> 13.3 Step III: Writing the interfaces
> could help you. As you can see there:
> # Line 45-49: This interface describes via field constraint which other
> types can contain a message. Clearly message boards can contain messages, but
> also messages can contain other messages - known as responses. We usually
> specify this constraint on the parent on the main content type interface (i.e.
> IMessage) directly, but since this constraint refers explicitely to IMessage
> have to wait till the interface is defined.
> # Line 52-59: We also want the message to be container, so it can contain
> responses and attachments. However, we do not want any object to be able to be
> added to messages, so we add a precondition as we did for the IMessageBoard
> interface. Again, we have to do this in a separate interface here, since we
> reference IMessage in the condition.
> Hope this helps.
> Regards, Douglas.
> Start your day with Yahoo! - make it your home page
Sorry, this is not really my problem:
The book speaks about a containment association.
My problem is a "simple" bi-directional association, which I cannot
break up into a contained and container class.
Adam mailto:[EMAIL PROTECTED]
Zope3-users mailing list