Importing from module, security
Hi all, i have a problem with the import of methods and classes from a self written module. Some details: I have a python class dealing with audiosignals. It loads a file from the filesystem performs operations on it and stores them in the filesystem. I want to use the classes in Zope (Plone) so i tried to pack them in a module and let the security machine know that it is allowed to import the class and the contained methods. To make it short: i didn't make it. Eiter i get an unauthorized error on the module, on the class or on the method inside the class. I noticed the collector issue http://collector.zope.org/Zope/685, but still don't know what to do. What would you do? Pack everything in a Zope product? I don't need to add instances to the ZODB, i just need the class and methods to work on audiosignals and store the in the file system. -- Regards, Rainer -- NEU F�R ALLE - GMX MediaCenter - f�r Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gru�, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse f�r Mail, Message, More! +++
On Tue, 2003-11-25 at 07:05, Rainer Thaden wrote:
What would you do? Pack everything in a Zope product? I don't need to add instances to the ZODB, i just need the class and methods to work on audiosignals and store the in the file system.
This seems like something you'll want to use an external method for. You'll also want to ensure that the use zope is running as has sufficient permissions to access these files. HTH, Dylan
Rainer Thaden wrote at 2003-11-25 16:05 +0100:
... I have a python class dealing with audiosignals. It loads a file from the filesystem performs operations on it and stores them in the filesystem. I want to use the classes in Zope (Plone) so i tried to pack them in a module and let the security machine know that it is allowed to import the class and the contained methods.
To make it short: i didn't make it. Eiter i get an unauthorized error on the module, on the class or on the method inside the class.
Please read the security section in the Zope Developer Guide. You can use my "DocFinder" product to analyse the security settings in your instances. <http://www.dieter.handshake.de/pyprojects/zope> -- Dieter
participants (3)
-
Dieter Maurer -
Dylan Reinhardt -
Rainer Thaden