[Zope] ZCLass methods
David Kyte
david.kyte@microamps.com
Thu, 10 Jan 2002 20:46:55 -0000
The Show method ....
<h1>Cool</h1>
<dtml-in Items>
<dtml-var sequence-item>
</dtml-in>
displays a list of lines
when using
<dtml-with name="Mn1">
<dtml-var name="Show">
</dtml-with>
but displays unsliceable object when using
<dtml-var expr="Mn1.Show(_.None,_)">
Any ideas?
Thanks
Dave
-----Original Message-----
From: Casey Duncan [mailto:c.duncan@nlada.org]
Sent: 10 January 2002 19:44
To: David Kyte; zope@zope.org
Subject: Re: [Zope] ZCLass methods
On Thursday 10 January 2002 02:19 pm, David Kyte allegedly wrote:
> Hi,
>
> Trying to Grock ZClasses ......
I think you mean grok 8^)
[snip]
>
> <dtml-var "Mn1.Show()"> then I egt an error trying
> to find the instance method Show.
>
> Any Ideas?
>
> Thanks in advance
>
> Dave
If Show is a DTML mehod, then calling it with no arguments won't work unless
there are not namespace refs in the DTML (which makes it fairly useless).
Try:
<dtml-var expr="Mn1.Show(_.None,_)">
Or this would also work:
<dtml-with name="Mn1">
<dtml-var name="Show">
</dtml-with>
hth,
/---------------------------------------------------\
Casey Duncan, Sr. Web Developer
National Legal Aid and Defender Association
c.duncan@nlada.org
\---------------------------------------------------/