Equivalent of "context" ZPT variable in DTML ?
Hello, What is the equivalent in DTML of ZPT "context" variable ? Thanks for your help, -- Stéphane
KLEIN Stéphane wrote:
Hello,
What is the equivalent in DTML of ZPT "context" variable ?
Thanks for your help, -- Stéphane
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
__________ NOD32 1.1105 (20050522) Information __________
This message was checked by NOD32 antivirus system. http://www.nod32.com
Stephenie, Someone may correct me on this but I think its assumed in DTML. So <dtml REQUEST> = <p tal:content="context/request"> or <p tal:content="python: context.REQUEST> David
Am Montag, den 23.05.2005, 00:01 +0200 schrieb KLEIN Stéphane:
Hello,
What is the equivalent in DTML of ZPT "context" variable ?
Its more or less the underscore: _ _ == context this() == template (or somethimes context if its a dtmlmethod I believe) The main problem with DTML is its lax handling of the namespaces. (e.g. they are all put on a pile where it fishes for variables - and its often a surprise where it finds them ;)
KLEIN Stéphane wrote:
What is the equivalent in DTML of ZPT "context" variable ?
There is no precise equivalent. The current context in DTML is folded into the DTML namespace, along with the request and call parameters and anything else that might be put in the namespace. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com
participants (5)
-
Andreas Jung -
David H -
J Cameron Cooper -
KLEIN Stéphane -
Tino Wildenhain