[Zope] accesing methods inside subfolders

Michel Pelletier michel@digicool.com
Tue, 17 Aug 1999 12:09:11 -0400


> -----Original Message-----
> From: Perez, Victor [mailto:vaperez@bechtel.com]
> Sent: Tuesday, August 17, 1999 11:48 AM
> To: 'zope'
> Subject: [Zope] accesing methods inside subfolders
> 
> 
> How can I access a method inside a subfolder from a 
> method/document in its
> parent folder?
> 
> Actually I have a squishdot site on a "news" folder. There is 
> a shownews
> method inside and I would like to call that method from my 
> main index_html
> method. I tried everything and my closest approach was to get 
> the a dump of
> its DTML code on the page using 
> <!--#var "news.shownews"-->

Yes but this doesn't actually *call* the method.  It just refers to it.

<dtml-with news>
  <dtml-var shownews>
</dtml-with>

Is probably how i would solve your problem.

-Michel

> 
> Thanks in advance for your help.
> 
> -
> Atentamente,
> Victor Perez Muena
> IS&T Support - Port Area (Los Vilos)
> Los Pelambres Project - Bechtel Chile Ltda.
> Ext. 8033, Phone: (2) 361-8033 - Fax: (2) 361-8025
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>