[Zope-dev] product creation problem..
Geir Bækholt Hansen
Geir B Hansen <geirh@funcom.com>
Mon, 3 Apr 2000 15:55:58 +0200
trying to make Johanc's IEmethod product fit into our intranet, i
modified it to inherit from DTMLdocument instead of method,
and modified __call__ in it by cut'n paste from DTMLdocument
and adding :
std_html_header= apply(HTML.__call__, (self.standard_html_header,bself, REQUEST), kw)
std_html_footer= apply(HTML.__call__, (self.standard_html_footer,bself, REQUEST), kw)
out = std_html_header + r + std_html_footer
return out
to make it include standard_html_header and footer..
Everything works nicely, except it seems it cannot see objects
outside itself.. As my header and footer
references other methods in my site, things break and i get
nameerrors.. (traceback supplied)
Any obvious gotchas i missed ?
--
Geir Bækholt Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com
Traceback (innermost last):
File C:\Program Files\funcom-dev\lib\python\ZPublisher\Publish.py, line 214, in publish_module
File C:\Program Files\funcom-dev\lib\python\ZPublisher\Publish.py, line 179, in publish
File C:\Program Files\funcom-dev\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File C:\Program Files\funcom-dev\lib\python\ZPublisher\Publish.py, line 165, in publish
File C:\Program Files\funcom-dev\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: fdgdfgsdfg)
File C:\Program Files\funcom-dev\lib\python\ZPublisher\Publish.py, line 102, in call_object
(Object: fdgdfgsdfg)
File C:\Program Files\funcom-dev\lib\python\Products\IEMethod\IEMethod.py, line 111, in __call__
(Object: fdgdfgsdfg)
File C:\Program Files\funcom-dev\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__
(Object: standard_html_header)
File C:\Program Files\funcom-dev\lib\python\DocumentTemplate\DT_Util.py, line 335, in eval
(Object: header_elements.set_language(_.None,_))
(Info: _)
File <string>, line 0, in ?
NameError: (see above)