On Fri, Feb 23, 2007 at 02:34:30PM +0100, Svenn Helge Grindhaug wrote:
> I'm trying to make a system for course registration. The user will get a list 
> of available courses, select one and register for the course.
> I have the following interfaces:
> class ICourse(IContainer):
>     """Store information about the course and store participants"""
>     contains('ers.interfaces.IParticipant')
> class IParticipant(IContained):
>     """Store information about participants"""
>     containers('ers.interfaces.ICourse')
> How do I store the information about the course - when course is a container? 
> As schema fields or as custom metadata? I have tried both without success and 
> need to know which of the two are the "correct" way or if I need to change 
> the hole design.

I would use schema fields.

Which way is "more correct" depends on your application.

Marius Gedminas
I spent a lot of time in the Java world. I'm so glad I'm on Planet Python
now :-)
        -- Steve Alexander

Attachment: signature.asc
Description: Digital signature

Zope3-users mailing list

Reply via email to