[Zope] referencing object with variable
mindlace
mindlace@imeme.net
Tue, 25 Apr 2000 17:52:30 -0600
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