[Zope] Product and accessing DTMLDocument properties
Dieter Maurer
dieter@handshake.de
Mon, 26 Feb 2001 23:54:20 +0100 (CET)
Andrew Williams writes:
> I have a product which I'm trying to develop and I would like to access the
> properties of a DTML Document and in the future other objects such as
> Folders. I have been able to get the default properties (ID) by looping
> through the tuples returned in obj.propertyItems() or by looping through the
> list returned by obj.propertyIds or even by accessing obj._properties
>
> The above methods work well for the default properties of an Object.
> However, these methods do not return added properties I have made to the
> DTML Document through the Zope management interface.
Are you sure?
I cannot believe that!
Anyway, the management interface itself uses:
<dtml-in propertyMap mapping>
You may look at its source in "OFS/dtml/properties.dtml"
to see how it is used.
Dieter