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
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 )
Phil Harris wrote:
Andy,
Try
print container.getId()
return printed
hth
Phil
That doesn't work either. Prehaps I should have been more specific. Generally _any_ calls on the container result in this error. I used 'container.id' because this is the simplist one to reproduce. In actual place where I am having this problem is where the container is a foldish product writen by NIP. But the fact that it is reproducable with the standard Zope Folder shows that something is fubar. I suspect the way container is implemented in PythonScript but I (personnaly) don't want to jump in that peice of code unless absolutely necersary. Cheers Anyway tho' -Andy
On Mon, Mar 26, 2001 at 10:49:47AM +0100, Andy Dawkins wrote:
Phil Harris wrote:
Andy,
Try
print container.getId()
return printed
hth
Phil
That doesn't work either.
Prehaps I should have been more specific.
Generally _any_ calls on the container result in this error.
I used 'container.id' because this is the simplist one to reproduce.
In actual place where I am having this problem is where the container is a foldish product writen by NIP. But the fact that it is reproducable with the standard Zope Folder shows that something is fubar.
I suspect the way container is implemented in PythonScript but I (personnaly) don't want to jump in that peice of code unless absolutely necersary.
I'd file this in the Collector, I have seen another problem with Python Scripts that seems related on the lists somewhere, I think something changed out from under Ethan's feet.. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
I'd file this in the Collector, I have seen another problem with Python Scripts that seems related on the lists somewhere, I think something changed out from under Ethan's feet..
This has been collected: No. 2094 http://classic.zope.org:8080/Collector/2094/view Cheers -Andy
participants (3)
-
Andy Dawkins -
Martijn Pieters -
Phil Harris