Zope import PythonScript.standard unauthorized
Hi, I've just insalled Zope to test a web application by thirdy part .... well .... it's very embarrassing cause I'm not able to see it to work because of Zope ..... (yeah... I'm really newbie :( ) I found out that the problem is in Products/PythonScript permission. To test them, in the ZMI, I created this script and then I tested it ============================================== TEST SCRIPT ============================================== # Example code: from Products.PythonScripts.standard import html_quote, urlencode return 1 ============================================== TEST OUTPUT ============================================== Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: import of "urlencode" from "Products.PythonScripts.standard" is unauthorized In Zope Bible they say there is a trick to escape this control using "External Methods", but it should be another way because the application I have to test doesn't use them at all ... any useful suggestion ..........? I'm using on Debian Woody Zope = Zope 2.5.1 Python= 2.1.3 Thank you very Lucas
At 11/12/2003 20:35, you wrote:
I've just insalled Zope to test a web application by thirdy part .... well .... it's very embarrassing cause I'm not able to see it to work because of Zope ..... (yeah... I'm really newbie :( )
Why Zope 2.5.1 and not the latest stable release (2.6.2)?
# Example code: from Products.PythonScripts.standard import html_quote, urlencode return 1
Error Type: ImportError Error Value: import of "urlencode" from "Products.PythonScripts.standard" is unauthorized
Unless urlencode were not allowed in 2.5.1, that should work fine. Gabriel Genellina Softlab SRL
participants (2)
-
Gabriel Genellina -
Lucas Branca