Re: [Zope] Equivalent of context ZPT variable in DTML ?

2005-05-23 Thread J Cameron Cooper

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
___
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 )


[Zope] Equivalent of context ZPT variable in DTML ?

2005-05-22 Thread KLEIN Stéphane

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 )


Re: [Zope] Equivalent of context ZPT variable in DTML ?

2005-05-22 Thread David H

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


___
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 )


Re: [Zope] Equivalent of context ZPT variable in DTML ?

2005-05-22 Thread Andreas Jung



--On Montag, 23. Mai 2005 0:01 Uhr +0200 KLEIN Stéphane 
[EMAIL PROTECTED] wrote:



Hello,

What is the equivalent in DTML of ZPT context variable ?



dtml-var this().somemethod() ?

-aj



pgpR27sWCi7Cv.pgp
Description: PGP signature
___
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 )


Re: [Zope] Equivalent of context ZPT variable in DTML ?

2005-05-22 Thread Tino Wildenhain
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 ;)


___
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 )