[Zope3-Users] Schema fields vs custom metadata

Marius Gedminas mgedmin at b4net.lt
Fri Feb 23 09:50:21 EST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20070223/d87cd19f/attachment.bin


More information about the Zope3-users mailing list