[Zope] ZCLass methods
Casey Duncan
c.duncan@nlada.org
Thu, 10 Jan 2002 14:43:34 -0500
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
\---------------------------------------------------/