[jerome: Re: [Zope] Problem with dtml-with]

Jerome Alet alet@librelogiciel.com
Mon, 22 Jul 2002 14:08:42 +0200


--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Lost CC, sorry

--jI8keyz6grp/JLjh
Content-Type: message/rfc822
Content-Disposition: inline

Date: Mon, 22 Jul 2002 14:07:56 +0200
To: Toby Dickenson <tdickenson@geminidataloggers.com>
Subject: Re: [Zope] Problem with dtml-with
Message-ID: <20020722120756.GB23670@mail.librelogiciel.com>
References: <20020722115056.GA4298@port50-2.unice.fr> <200207221303.37752.tdickenson@geminidataloggers.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200207221303.37752.tdickenson@geminidataloggers.com>
User-Agent: Mutt/1.4i

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

--jI8keyz6grp/JLjh--