[Zope] error trying to import smtplib (unauthorized)

Nicolas Georgakopoulos nicolasg at vtrip.net
Thu Oct 13 10:15:10 EDT 2005


Trying to execute the following code from a python script

from smtplib import SMTP
from email.MIMEText import MIMEText

I get a error:

*Error Type: ImportError*
*Error Value: import of "SMTP" from "smtplib" is unauthorized. You are 
not allowed to access 'SMTP' in this context
*
Why I can't access SMTP if I am a user manager with all the access 
enabled for managers in the current context ?


More information about the Zope mailing list