[Zope] Add a property with a class constructor

Dieter Maurer dieter@handshake.de
Sat, 14 Apr 2001 20:21:39 +0200 (CEST)


=?iso-8859-1?q?Herv=E9=20Richard?= writes:
 > In a foder i can write a dtml-method like this, but from the constructor ?
 >  
 >     <dtml-with "PARENTS[0]">
 >       ...
You replace "PARENTS[0]" with the newly created object.

Your object must be a PropertyManager for the "manage_addProperty"
to be available.
Otherwise, you may need to add properties to a property sheet.
See embedded Zope Online Help --> Zope Help --> API Reference --> *
whether PropertySheets support adding new preperties.


Dieter