[Zope] Product Troubles
Jason Bush
jason@nol.org
Mon, 01 Jul 2002 17:03:07 -0500
--------------D7CDE167EB528AA1D8B1D8B2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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
--------------D7CDE167EB528AA1D8B1D8B2
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I am new to the Python programming language, and am trying to get a new
product to
<br>work. Alas I received this error that I cant seem to track
down...
<p> Error Type:
AttributeError
<br> Error
Value: raw
<p>Traceback (innermost last):
<br> File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 150, in publish_module
<br> File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 114, in publish
<br> File /usr/scar/export1/dist/zope-new/lib/python/Zope/__init__.py,
line 158, in zpublisher_exception_hook
<br> (Object: this_test)
<br> File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 98, in publish
<br> File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/mapply.py,
line 88, in mapply
<br> (Object: index_html)
<br> File /usr/scar/export1/dist/zope-new/lib/python/ZPublisher/Publish.py,
line 39, in call_object
<br> (Object: index_html)
<br> File /usr/scar/export1/dist/zope-new/lib/python/Products/NOLContent/NOLContent.py,
line 71, in index_html
<br> (Object: this_test)
<br> File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 411, in __call__
<br> (Object: this_test)
<br> File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 340, in cook
<br> (Object: this_test)
<br> File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 332, in read
<br> (Object: this_test)
<br> File /usr/scar/export1/dist/zope-new/lib/python/DocumentTemplate/DT_String.py,
line 328, in read_raw
<br> (Object: this_test)
<br>AttributeError: (see above)
<p>This class inherits from SimpleItem and DTMLMethod and the line of my
code (line 71 of NOLContent.py) is:
<p>apply(HTML.__call__,(self, client, REQUEST), kw)
<p>I am trying to the the ZPublisher to render the content, (self.data
of the object), if I just return the
<br>self.data it works by showing the HTML portions correctly, but the
<DTML> is not rendered.
<p>Any help is appreciated.
<pre>--
Jason Bush --- jason@nol.org
Nebraska Online <A HREF="http://www.nol.org">http://www.nol.org</A></pre>
</html>
--------------D7CDE167EB528AA1D8B1D8B2--