Bizarre import errors, was Re: [Zope] aq_explicit permission: where set?

Dieter Maurer dieter at handshake.de
Thu Sep 25 15:05:31 EDT 2003


Paul Winkler wrote at 2003-9-25 11:02 -0400:
 > Synopsis:  One ZEO server, two ZEO clients, same code installed
 > on all three.  One client gives an ImportError on a custom
 > product, the other does not.
 > ...
 > from Products.CTIPortalData import ExprEvaluator
 > 
 > ...Which is fine on ONE of the zeo clients, but on the other, I get:
 > ...
 >   Module AccessControl.ZopeGuards, line 127, in guarded_import
 > ImportError: import of "ExprEvaluator" from "Products.CTIPortalData" is unauthorized. You are not allowed to access ExprEvaluator in this context

Activate Zope logging (--> doc/LOGGING.txt) and look at the log
file.

Often, there are startup problems (missing shared library not installed
or something like this) that cause products to be only partially
imported. As a consequence some security declarations may not have
been executed.


Dieter



More information about the Zope mailing list