Bug in Zope 2.3.1b3 PythonScripts (I think)
My earlier mail about the PythonScript calling DTML method appears to have been confirmed, at least on the RedHat 6.2 sparc platform. I just downloaded a clean installation of 2.3.1b3 onto another machine and did a clean build - no extra products, no imports, and the following PythonScript in the root: print context.standard_html_header(context,context.REQUEST) print context.standard_html_footer(context,context.REQUEST) return printed Gives this traceback: Error Type: TypeError Error Value: call of non-function (type list) Traceback (innermost last): File /usr/local/Zope2.3.1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope2.3.1b3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope2.3.1b3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/Zope2.3.1b3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope2.3.1b3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: test_html) File /usr/local/Zope2.3.1b3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: test_html) File /usr/local/Zope2.3.1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: test_html) File /usr/local/Zope2.3.1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: test_html) File /usr/local/Zope2.3.1b3/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: test_html) (Info: ({'script': <PythonScript instance at 689a30>, 'context': <Application instance at 7399e0>, 'container': <Application instance at 7399e0>, 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 2, in test_html (Object: <lambda>) TypeError: (see above) Identical code functions as expected under Zope 2.3.0 release code on the same machine. I can't see any obvious differences in either Products/PythonScripts or DocumentTemplate/ but I'm hardly a Zope core hacker... I guess it must be in the acquisition code. Suggestions welcome - I tried to put this into the Collector but got various combinations of unhelpful error messages (Pricipia Unavailable being the principle one) - oh well <grin> Suggestions welcome... Cheers, Phil
participants (1)
-
Mayers, Philip J