[Zope] Python classes properties.

Dieter Maurer dieter@handshake.de
Mon, 18 Nov 2002 19:34:48 +0100


naveen writes:
 >  I am using python classes to for my Zope product. How do i add one more 
 > property sheet to my python class.
 > 
 > I add the first one using the following code:
 > 
 > _properties=({'id':'title', 'type': 'string', 'mode': 'w'},
 >              {'id':'color', 'type': 'string', 'mode': 'w'},
 >              )
 > 
 > Since i already have about 25 properties on this property. i want to add 
 > another property sheet as we do in ZOPE ZClass.
Look at "OFS.PropertySheets.PropertySheets".

You will need some investigation to see how to plug this in your
custom class.


Dieter