[Zope] Problem with dtml-with

Jerome Alet alet@unice.fr
Mon, 22 Jul 2002 13:50:56 +0200


I've got a problem when using <dtml-with> on instances 
of a python product :

  <dtml-var "MyInstance.method()"> 
  Works fine.

  <dtml-in "objectValues(['MyClass'])">
    <dtml-var method>
  </dtml-in>                   
  Works fine too.

But :

  <dtml-with MyInstance>
    <dtml-var method>
  </dtml-with>
  Doesn't work.

  In fact instead of searching "method" in MyInstance in
searches it in its container, as if the <dtml-with> didn't
push MyInstance's namespace.
 
Any idea ?

Thanks in advance

Jerome Alet