[Zope-PTK] How to debug?

J C Lawrence claw@kanga.nu
Thu, 02 Mar 2000 20:36:22 -0800


I have a PTK Folder under which are a normal Folder and a Squishdot
folder.  I've edited the index_html in both to get the
standardhtml_(header|footer) from the PTK folder.  The
standard_html* are the ones that do all the PTK-ish stuff, and in
particular call getPortal (this is a lightly touched PTK demo).

  http://site/PTK/squishdot/

renders just fine.

  http://site/PTK/folder/

gives:

  Error Type: AttributeError
  Error Value: getPortal

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

I'm kinda lost here and just don't see why.  Any suggestions for
tracking this down?

-- 
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--