D. Bickle wrote at 2004-2-11 12:28 -0800:
... objects not importable ...
Which Python scripts? "Script (Python)" (aka internal Python scripts) or External Methods? Both internal and external methods.
The only requirement to import a module (and its content) from an External Method is that it (or a package chain containing it) is reachable via "sys.path". You can see the "sys.path" used by Zope in "Control_Panel --> Debug information". "sys.path" is setup from the "PYTHONPATH" environment variable. Zope extends it by its "lib/python" and (maybe) "$INSTANCE_HOME/lib/python". Python extends it by references to its runtime library and mechanisms documented in its "site.py" module. Import in internal Python scripts requires security declarations. This is documented in the Zope Developper guide and (partially) the "README" file in "Products/PythonScripts". When the security declarations are not there, you get an "Unauthorized" exception. -- Dieter