When I run the following python script, Zope asks me to log in. I would like for it NOT to require authorization. But, even when I login with a valid Zope Administrator uid/pwd, it won't work. Python Script "rotateImage" has Proxy Roles Anonymous, Manager, Owner import os cmd="convert -rotate 90 /usr/local/zope/2-3-2/var/photos/1999/P1010559.JPG /usr/local/zope/2-3-2/var/photos/1999/P1010559.JPG os.system(cmd) the script is called from rotateImageFile_dtml with Proxy Roles Anonymous, Manager, Owner <dtml-call expr="rotateImage('arg1')"> Zope runs as Nobody and was installed based on Chris's great HOWTO here -> http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO File permissions are as follows /usr/local/zope/2-3-2/var nobody jchotz drwxrwxr-x /usr/local/zope/2-3-2/var/photos nobody nobody drwxrwxrwx all /photos children directories and files are nobody nobody rwxrwxrwx What am I missing? jeff@hotz.net www.hotz.net
On Mon, Jul 16, 2001 at 05:16:20PM -0500, Jeff Hotz wrote:
When I run the following python script, Zope asks me to log in. I would like for it NOT to require authorization. But, even when I login with a valid Zope Administrator uid/pwd, it won't work.
Python Script "rotateImage" has Proxy Roles Anonymous, Manager, Owner import os
You're not allowed to import some modules by default in Python Scripts, for security reasons. Search the mailing list archives on zope.nipltd.com to learn how to disable this security check. Alternatively you could create an External Method, which will run completely unrestricted, and import whatever module you need. bye, Jerome Alet
Great call. The external method was the easy and appropriate solution. Thanks for your help. At 12:37 AM 7/17/2001 +0200, Jerome Alet wrote:
On Mon, Jul 16, 2001 at 05:16:20PM -0500, Jeff Hotz wrote:
When I run the following python script, Zope asks me to log in. I would like for it NOT to require authorization. But, even when I login with a valid Zope Administrator uid/pwd, it won't work.
Python Script "rotateImage" has Proxy Roles Anonymous, Manager, Owner import os
You're not allowed to import some modules by default in Python Scripts, for security reasons.
Search the mailing list archives on zope.nipltd.com to learn how to disable this security check.
Alternatively you could create an External Method, which will run completely unrestricted, and import whatever module you need.
bye,
Jerome Alet
jeff@hotz.net www.hotz.net
participants (2)
-
Jeff Hotz -
Jerome Alet