[Zope] Problem with dtml-with

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 22 Jul 2002 13:32:08 +0100


On Monday 22 Jul 2002 1:07 pm, Jerome Alet wrote:
> On Mon, Jul 22, 2002 at 01:03:37PM +0100, Toby Dickenson wrote:
> > On Monday 22 Jul 2002 12:50 pm, Jerome Alet wrote:
> > >   <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?
>
> its __call__ method renders it as HTML, if that's what you
> asked.

yes, thats the cause.

> > try:
> >
> > <dtml-with "MyInstance">
>
> This works. Thanks.
>
> What solution could I provide to this problem in order to not need
> the quotes ?

remove the __call__