[Zope-PTK] Inability to add dtml documents

Shane Hathaway shane@digicool.com
Wed, 13 Sep 2000 13:05:15 -0400


oliver@sufface.net wrote:
> 
> Hi,
> 
> The following was sent in April this year. I notice the same problem
> exists in the 2.2.0 version of Zope. Are there any plans to fix this?

It should be fixed in the latest CVS PTK, which has a number of fixes.

Shane

> Here's the previous mail:
> 
> 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
> it:
> 
> Traceback (innermost last):
>   File /local/home/Web/lib/python/ZPublisher/Publish.py, line 214, in
> publish_module
>   File /local/home/Web/lib/python/ZPublisher/Publish.py, line 179, in
> publish
>   File /local/home/Web/lib/python/Zope/__init__.py, line 202, in
> zpublisher_exception_hook
>     (Object: ElementWithAttributes)
>   File /local/home/Web/lib/python/ZPublisher/Publish.py, line 165, in
> publish
>   File /local/home/Web/lib/python/ZPublisher/mapply.py, line 160, in
> mapply
>     (Object: foo)
>   File /local/home/Web/lib/python/ZPublisher/Publish.py, line 102, in
> call_object
>     (Object: foo)
>   File /local/home/Web/lib/python/OFS/DTMLDocument.py, line 166, in
> __call__
>     (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
> __call__
>     (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.
> 
> _______________________________________________
> Zope-PTK maillist  -  Zope-PTK@zope.org
> http://lists.zope.org/mailman/listinfo/zope-ptk
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests