[Zope] dtml-with this only broken?
Ron Bickers
rbickers@logicetc.com
Fri, 23 Mar 2001 14:47:18 -0500
Ok... I think I might understand now, but what do you mean by this? What is
it almost unusable?
"Note
I was tempted to use the only argument to achieve this. However, this
argument is almost unusable. You probably should forget about it."
Is it true, then, that even though this() is the only namespace in the
stack, acquisition is still effective and thus my attribute is still being
acquired? If this is the case, is there a simple way to use dtml-with and
get only this() without acquisition?
_______________________
Ron Bickers
Logic Etc, Inc.
rbickers@logicetc.com
> -----Original Message-----
> From: Dieter Maurer [mailto:dieter@handshake.de]
> Sent: Friday, March 23, 2001 2:20 PM
> To: Ron Bickers
> Cc: zope@zope.org
> Subject: Re: [Zope] dtml-with this only broken?
>
>
> Ron Bickers writes:
> > It seems that <dtml-with "this()" only> doesn't do what one
> would expect.
> > My 'description' is still being acquired. I found in the
> mailing list that
> > I can use something like <dtml-if "_.hasattr(aq_explicit,
> 'description')">,
> > but why doesn't the with only work?
> Please read the sections "Name Lookup" and "DTML -> Commands -> with" in
>
> URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html
>
> You will probably recognize that the expectations were wrong....