Hi, I use XMLDocument the following dtml method (editUseCaseTitle): <dtml-let doc="getOwnerDocument()" title_node="doc.createElement('title')" title_text="doc.createTextNode(title)"> <dtml-call "title_node.appendChild(title_text)"> <dtml-call "getParentNode().replaceChild(title_node, this())"> </dtml-let> applied on an XML Node http://zion:8080/UseCases/cases/cases_lines/xml_db/e2914/e2964/editUseCaseTi tle where : - xml_db is my XML Document - editUseCaseTitle is in the 'cases' folder When running I have the following error : Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to access appendChild. Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: editUseCaseTitle) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: editUseCaseTitle) File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: editUseCaseTitle) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: editUseCaseTitle) File /usr/local/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: doc="getOwnerDocument()" title_node="doc.createElement('title')" title_text="doc.createTextNode(title)") File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: title_node.appendChild(title_text)) (Info: title_text) File <string>, line 0, in ? File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 140, in careful_getattr Unauthorized: (see above) Current user is manager for everything...(me !) I use Zope version: Zope 2.1.6 (source release, python 1.5.2, linux2) Python version: 1.5.2 (#2, May 18 2000, 10:00:10) [GCC 2.95.2 19991024 (release)] System Platform: freebsd4 XMLDocument (XML Document 1.0a6) What is wrong ? :( Regards, Olivier.
participants (1)
-
Olivier Deckmyn