Luis Cortes wrote:
I am wondering if "_['site']" is really what you meant to do?
<dtml-with "_['site']"> gives the same answer. Along this vein, where site=demo <dtml-var "_[site]"> renders the demo object, but if test has a property domain, <dtml-var "_[site].domain"> (or <dtml-var "_['site'].domain">) raises the following error: 'string' object has no attribute 'domain' <!-- 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: pay) File /imeme/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: pay) File /imeme/zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: pay) File /imeme/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: pay) File /imeme/zope/lib/python/DocumentTemplate/DT_With.py, line 148, in render (Object: billing) File /imeme/zope/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: _[site].domain) (Info: site) File <string>, line 0, in ? File /imeme/zope/lib/python/DocumentTemplate/DT_Util.py, line 127, in careful_getattr AttributeError: (see above) --> Now, I *know* that the string object site has no attribute domain, but the demo object does indeed have the attribute domain, and doing <dtml-var "demo.domain"> -- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net