[ZCM] [ZC] 562/ 1 Request "pDocumentTemplate is broken"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Mon, 09 Sep 2002 19:20:50 -0400


Issue #562 Update (Request) "pDocumentTemplate is broken"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/562

==============================================================
= Request - Entry #1 by efge on Sep 9, 2002 7:20 pm

pDocumentTemplate doesn't work.

To reproduce, take a brand new Zope install, and make
it not use cDocumentTemplate, by doing for instance:

mv lib/python/DocumentTemplate/cDocumentTemplate.so \
lib/python/DocumentTemplate/cDocumentTemplate.so.removed

Then start Zope and go to http://localhost:8080/manage

On 2.5.1 for instance you get:

  File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /home/fg/tmp/zope/251/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: Zope)
  File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /home/fg/tmp/zope/251/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: manage_main)
  File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: manage_main)
  File /home/fg/tmp/zope/251/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__
    (Object: manage_main)
  File /home/fg/tmp/zope/251/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec
    (Object: manage_main)
  File /home/fg/tmp/zope/251/lib/python/App/special_dtml.py, line 172, in _exec
    (Object: manage_main)
  File /home/fg/tmp/zope/251/lib/python/DocumentTemplate/pDocumentTemplate.py, line 209, in render_blocks
TypeError: object of type 'None' is not callable


But on occasions I also got "object of type 'list' is not callable".

==============================================================