Andy, Try print container.getId() return printed hth Phil ----- Original Message ----- From: "Andy Dawkins" <andyd@nipltd.com> To: <zope-dev@zope.org> Sent: Monday, March 26, 2001 10:29 AM Subject: [Zope-dev] Zope 2.3.1b3 problem
People
I have found this small problem but I don't know where it is coming from or why.
If you create a Python Script in a folder: ------- print container.id
return printed -------
If fails with this error:
Error Type: TypeError Error Value: call of non-function (type list)
Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: hmmmm) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: hmmmm) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: hmmmm) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: hmmmm) File /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: hmmmm) (Info: ({'script': <PythonScript instance at 83c9878>, 'context': <Folder instance at 874b608>, 'container': <Folder instance at 874b608>, 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 2, in hmmmm (Object: <lambda>) TypeError: (see above)
I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it works fine on Zope 2.3.1b1
Any Ideas/Assistance?
-Andy
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )