[Zope] calling methods located in subfolders & context problemwq
Dan Meszaros
dm@petamem.com
Wed, 9 Apr 2003 18:48:38 +0200 (CEST)
hi,
i have the following problem:
scenario: i have these 3 files in root folder in zope:
/index_html
/standard_html_header
/standard_html_footer
and a file 'a' in 'x' folder
/x/a
'a' file contains:
<dtml-var standard_html_header>
hi
<dtml-var standard_html_footer>
and 'index_html' file contains this:
<dtml-var "x.a()">
when i want to view the 'index_html' file i get:
Error Type: KeyError
Error Value: standard_html_header
it seems that 'a' is evaluated in context where the standard_html_*
methods are not inherited. how can i make this work?
(ie- i need to call methods that are in subfolders of caller object
and i need to have their dtml tags interpolated by zope)
regards
-dan
--
dan meszaros <dm@petamem.com>; programmer; PetaMem, s.r.o.,
Ocelarska 1, 0x4268 Praha 0x9, Ceska republika; http://www.
petamem.com