I am new to the Python programming language, and am trying to get a new
product to
work. Alas I received this error that I cant seem to track
down...
Error Type:
AttributeError
Error
Value: raw
Traceback (innermost last):
File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 150, in publish_module
File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 114, in publish
File /usr/scar/export1/dist/zope-new/lib/python/Zope/__init__.py,
line 158, in zpublisher_exception_hook
(Object: this_test)
File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 98, in publish
File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/mapply.py,
line 88, in mapply
(Object: index_html)
File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 39, in call_object
(Object: index_html)
File /usr/scar/export1/dist/zope-new/lib/python/Products/NOLContent/NOLContent.py,
line 71, in index_html
(Object: this_test)
File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 411, in __call__
(Object: this_test)
File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 340, in cook
(Object: this_test)
File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 332, in read
(Object: this_test)
File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 328, in read_raw
(Object: this_test)
AttributeError: (see above)
This class inherits from SimpleItem and DTMLMethod and the line of my code (line 71 of NOLContent.py) is:
apply(HTML.__call__,(self, client, REQUEST), kw)
I am trying to the the ZPublisher to render the content, (self.data
of the object), if I just return the
self.data it works by showing the HTML portions correctly, but the
<DTML> is not rendered.
Any help is appreciated.
-- Jason Bush --- jason@nol.org Nebraska Online http://www.nol.org