[Zope] Difference between manage_addProperty on a DTMLDocument and on a
Folder ?
Folder ?
Benillouche, Michael
Michael.Benillouche@france.acnielsen.com
Mon, 7 Feb 2000 11:35:28 +0100
I have the following problem :
When I execute this code :
<dtml-call "REQUEST.set('compteur_login', _.str(compteur) )">
<dtml-call "manage_addFolder(id=compteur_login)">
<dtml-call "_[compteur_login].manage_addProperty('type', 'FC', 'string')">
The Folder is created with the property 'type'
But when I execute this code :
<dtml-call "REQUEST.set('compteur_login', _.str(compteur) )">
<dtml-call "manage_addDTMLDocument(id=compteur_login)">
<dtml-call "_[compteur_login].manage_addProperty('type', 'FC', 'string')">
I have the following error :
Error Type: AttributeError
Error Value: 'string' object has no attribute 'manage_addProperty'
It seems that manage_addProperty doesn't behave the same way on a Folder and
a DTMLDocument .
Any solution to make it work ?
Thanks a lot.
Michael