Subject: Re: [Zope] Problem with dtml-with
To: Toby Dickenson <[email-masked]>
Date: Mon, 22 Jul 2002 14:07:56 +0200

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.

> try:
> 
> <dtml-with "MyInstance">

This works. Thanks.

What solution could I provide to this problem in order to not need
the quotes ?

thanks in advance

Jerome Alet