[Zope] add properties to file via DTML

Simon Brun simon@tac.ch
Wed, 19 Jun 2002 12:08:17 +0200

hi guys

I try to add properties to a file via dtml, without success! I get a
"Authorization required" message. The security settings are set to "Manage
properties - Anonymous, Manager, Owner".

here the code I use to add the properties:
<dtml-call "REQUEST.set('content_dir', 'news')">
<dtml-call "REQUEST.set('content_id', 'testdocument')">
<dtml-call "REQUEST.set('tA_worker', 'simon')">
<dtml-call "_[content_dir]._[content_id].manage_addProperty('author', tA_worker,

here the traceback after pressing "cancel" when the "Authorization required"

File /var/data/zope/lib/python/ZPublisher/Publish.py, line 222, in
File /var/data/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
File /var/data/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
File /var/data/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: addAction)
File /var/data/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: addAction)
File /var/data/zope/lib/python/OFS/DTMLMethod.py, line 189, in __call__
(Object: addAction)
File /var/data/zope/lib/python/DocumentTemplate/DT_String.py, line 538, in
(Object: addAction)
File /var/data/zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render
(Object: new_intranet)
File /var/data/zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render
(Object: _[upload_dir])
File /var/data/zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval
(Object: _[content_dir]._[content_id].manage_addProperty('author', worker,
(Info: content_id)
File <string>, line 0, in ?
File /var/data/zope/lib/python/DocumentTemplate/DT_Util.py, line 142, in
Unauthorized: _

can anyone help me?