[Zope] Problem with dtml-with
Toby Dickenson
tdickenson@geminidataloggers.com
Mon, 22 Jul 2002 13:03:37 +0100
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">