Zopistas, This renders the DTML Document named by the cookie variable id: <dtml-var "_[REQUEST.cookies['id']]"> However, this gives me an error: <dtml-call "_[REQUEST.cookies['id']].manage_changeProperties(REQUEST)"> The error is: Error Type: AttributeError Error Value: 'string' object has no attribute 'manage_changeProperties' Traceback (innermost last): File /imeme/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /imeme/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /imeme/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /imeme/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /imeme/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: thankyou) File /imeme/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: thankyou) File /imeme/zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: thankyou) File /imeme/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: thankyou) File /imeme/zope/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: _[REQUEST.cookies['id']].manage_changeProperties(REQUEST)) (Info: REQUEST) File <string>, line 0, in ? File /imeme/zope/lib/python/DocumentTemplate/DT_Util.py, line 127, in careful_getattr AttributeError: (see above) I _know_ that id is a string value. I don't want id, I want the document *named* by ID. I can see no other way to do what I'm trying to do. Thanks eternally for assistance, -- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net
mindlace wrote:
Zopistas,
This renders the DTML Document named by the cookie variable id: <dtml-var "_[REQUEST.cookies['id']]">
Haha! Thank you Rik for answering my question a month ago: Rick Hoekstra wrote:
Darran Edmundson wrote:
Say one has an object reference and knows the string id of a child node. From this info, we want an object reference to the named child.
wouldn't
<dtml-var "_.getitem('<desired_ref>').<whateverproperty>">
get you what you want?
Yes indeedy, Rik, that *is* what I wanted, and it saved my posterior. Thanks! -- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net
participants (1)
-
mindlace