Hi, Does anyone know of a way to use the PIL imaging library within a Zope instance. If i do from PIL import Image I get Module AccessControl.ZopeGuards, line 284, in guarded_import ImportError: import of "Image" from "PIL" is unauthorized. You are not allowed to access 'Image' in this context Anyway to change this restriction? Is it advisable to change it? PIL works fine when using it via an external method, but this is a bit cumbersome for what I need to do. Advice appreciated. Jamie
Module AccessControl.ZopeGuards, line 284, in guarded_import ImportError: import of "Image" from "PIL" is unauthorized. You are not allowed to access 'Image' in this context
Anyway to change this restriction? Is it advisable to change it?
PIL works fine when using it via an external method, but this is a bit cumbersome for what I need to do.
This is a FAQ: -> lib/python/Products/PythonScript/README.txt -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
I have been running zope 2.9.2 (python 2.4.2, linux - CentOS 4.3) for a month or so and have just noticed that the 'Temporary Folder' option in the ZMI 'Add' list is missing. The Temporary Folder product is installed and seems ok (icon not broken) and I have another temp_folder instance which seems to be working ok (this temp_folder instances was part of an export from an old version of zope - 2.6.1 - and which was then then imported into my current zope installation). I copied/pasted the existing temp_folder to create a new instance and that seemed to work ok as well. Does anyone have any ideas as to why 'Temporary Folder' would not appear in the 'Add' list? Thanks, Jonathan
--On 5. Juni 2006 14:10:25 -0400 Jonathan <dev101@magma.ca> wrote:
Does anyone have any ideas as to why 'Temporary Folder' would not appear in the 'Add' list?
Temporary folders must be configured as storage in etc/zope.conf and added through the ZMI through "Add ZODB Mountpoint". The zope.conf file contains an example configuration. -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
That did the trick! Thanks! ----- Original Message ----- From: "Andreas Jung" <lists@zopyx.com> To: "Jonathan" <dev101@magma.ca>; <zope@zope.org> Sent: Monday, June 05, 2006 2:26 PM Subject: Re: [Zope] Missing Temporary Folder
participants (3)
-
Andreas Jung -
Jamie Bullock -
Jonathan