[Zope] ImportError

Dieter Maurer dieter@handshake.de
Fri, 2 Nov 2001 23:53:34 +0100


Phillip Gibb writes:
 > thanks to Tino, I was able to finally post some data from a form to a python
 > script. But I kept getting errors of the form can't use __init__, __name__,
 > because it starts with _
 > 
 > I removed those, and now I keep getting the following :
 > 
 > Error Type: ImportError
 > Error Value: import of "makedirs" from "os" is unauthorized, etc .........
 > 
 > now these I can't remove otherwise the program will not work
Your options:

  *  use an External Method instead of a Python Script
  *  use XXPythonScripts (maybe XXXPythonScripts) instead of PythonScripts
  *  provide the necessary security declarations to allow for
     "makedirs" to be imported.

The mailing list archives contain more detailed information on what
to do for the various options. There may also be HowTos on
zope.org.


Dieter