22 Jul
2002
22 Jul
'02
12:03 p.m.
On Monday 22 Jul 2002 12:50 pm, Jerome Alet wrote:
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.
Is MyInstance callable? try: <dtml-with "MyInstance">