[Zope] Equivalent of dtml-with in script or ZPT?

Steve McMahon steve@reidmcmahon.com
Sat, 08 Mar 2003 17:09:58 -0800


Is there a way to achieve in a Python script an effect equivalent to

<dtml-with an_object>
   operations in context of an_object
</dtml-with>

? I know it's possible to call the object's methods, but if I need to 
pass the methods a context (for example to render a DTML method), I get 
the context of the object calling the script, not the context of an_object.

And, for that matter, is there a way to achieve the same effect in a 
TALES expression?

Thanks for all feedback!

-- 
______________________________________________________

Steve McMahon
Reid-McMahon, LLC