[Zope] accesing methods inside subfolders
Perez, Victor
vaperez@bechtel.com
Tue, 17 Aug 1999 13:24:48 -0500
Thanks Michael but, It didn't work. I'm running zope 1 so I've created a
method named "shnews" with the follow:
<!--#var standard_html_header-->
<!--#with news-->
<!--#var shownews-->
<!--#/with-->
<!--#var standard_html_footer-->
when i call it, I get the "system unavailable" error message with the
following:
Error type:
Error value: shownews
<!--
Traceback (innermost last):
File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 877, in
publish_module
File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 590, in
publish
(Info: /shnews)
File C:\Program Files\Zope\lib\python\OFS\DTMLMethod.py, line 155, in
__call__
(Object: shnews)
File C:\Program Files\Zope\lib\python\OFS\DTMLMethod.py, line 151, in
__call__
(Object: shnews)
File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_String.py, line
513, in __call__
(Object: shnews)
File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_With.py, line
148, in render
(Object: news)
KeyError: (see above)
-->
"news" is a squishdot 1.5 folder.... żbug?
-
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
> -----Original Message-----
> From: Michel Pelletier [SMTP:michel@digicool.com]
> Sent: Tuesday, August 17, 1999 12:09 PM
> To: Perez, Victor; 'zope'
> Subject: RE: [Zope] accesing methods inside subfolders
>
>
> > <!--#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.
>
>