[Zope-PTK] index_html and getPortal()

Bill Anderson banderson@boi.hp.com
Thu, 06 Apr 2000 12:43:39 -0600

OK, still seeing this bug in 0.7.1.
Create a 'Portal Folder', in that 'Portal Folder' create a 'DTML
Document', and you will get the following traceback when trying to view

Traceback (innermost last):
  File /local/home/Web/lib/python/ZPublisher/Publish.py, line 214, in
  File /local/home/Web/lib/python/ZPublisher/Publish.py, line 179, in
  File /local/home/Web/lib/python/Zope/__init__.py, line 202, in
    (Object: ElementWithAttributes)
  File /local/home/Web/lib/python/ZPublisher/Publish.py, line 165, in
  File /local/home/Web/lib/python/ZPublisher/mapply.py, line 160, in
    (Object: foo)
  File /local/home/Web/lib/python/ZPublisher/Publish.py, line 102, in
    (Object: foo)
  File /local/home/Web/lib/python/OFS/DTMLDocument.py, line 166, in
    (Object: foo)
  File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
    (Object: foo)
  File /local/home/Web/lib/python/OFS/DTMLMethod.py, line 146, in
    (Object: standard_html_header)
  File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
    (Object: standard_html_header)
  File /local/home/Web/lib/python/DocumentTemplate/DT_Util.py, line 335,
in eval
    (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST))
    (Info: this)
  File <string>, line 0, in ?
  File /local/home/Web/lib/python/Products/PTKBase/Toolbox.py, line 24,
in __call__
AttributeError: (see above)

Change it to a 'DTML Method', and the error goes away.

Any idea how/when this wil be fixed, or is it in CVS?

Bill Anderson 			Linux/Unix Administrator, Security Analyst
ESBU (ARC)			bill_anderson@boi.hp.com
My opinions are just that; _my_ opinions.