[Zope-PTK] Document Error.

Joseph A. Archer archerja@jmu.edu
Mon, 28 Feb 2000 09:40:09 -0500


Hello all,

I'm having a problem using any DTML documents from within a Portal.  I'm
using Zope 2.1.4 (compiled myself so that I could get the MySQL backend to
work), Mandrake Linux 7.0, and the ZopePTK from the morning of 02/27/2000.
I can create documents within a Portal folder (or regular folder), and I can
even create SQL forms and methods.  But, when I try to view them, I receive
the following error:

<snip>
 ...
 <P>
  <STRONG>Error Type: AttributeError</STRONG><BR>
  <STRONG>Error Value: getPortal</STRONG><BR>
  </P>
 ...
</snip>

and

<snip>
<!--
Traceback (innermost last):
  File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /usr/local/zope/2-1-4/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 165, in
publish
  File /usr/local/zope/2-1-4/lib/python/ZPublisher/mapply.py, line 160, in
mapply
    (Object: ClassesInsertForm)
  File /usr/local/zope/2-1-4/lib/python/ZPublisher/Publish.py, line 102, in
call_object
    (Object: ClassesInsertForm)
  File /usr/local/zope/2-1-4/lib/python/OFS/DTMLDocument.py, line 166, in
__call__
    (Object: ClassesInsertForm)
  File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
    (Object: ClassesInsertForm)
  File /usr/local/zope/2-1-4/lib/python/OFS/DTMLMethod.py, line 141, in
__call__
    (Object: standard_html_header)
  File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
    (Object: standard_html_header)
  File /usr/local/zope/2-1-4/lib/python/DocumentTemplate/DT_Util.py, line
335, in eval
    (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST))
    (Info: this)
  File &lt;string&gt;, line 0, in ?
  File /usr/local/zope/2-1-4/lib/python/Products/PTKBase/Toolbox.py, line
23, in __call__
AttributeError: (see above)
-->
...
</snip>

(I'm also having trouble finding where to place items that I want members to
see in their toolbox, after they log in .  But, that's a different problem.
I can always go back to "dtml-var memberbox", right?)

I can view a DTML method just fine, though.  I would like to use the Portal
for a Registration site for our Employee Appreciation Day that is coming up,
but I can't get this to work.  It used to work in an earlier version of the
Portal, but not now.  If I can't get this to work, I may need to find an old
version of the cvs, and get the MySQL backend to work, at least.  Any
thoughts on the matter would be greatly appreciated.  Take it easy on me,
I'm fairly new to Zope.

Thanks, in advance.

virtually,

Joseph A. Archer
IT Coordinator
Facilities Management
James Madison University
archerja@jmu.edu