Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Chris Withers
Hi Nicolas, Nicolas Georgakopoulos wrote: thank you for your support ! Right, I'm not gonna get to do a new release as soon as I'd like since there are a few more issues I want to solve. However, as the one you found is a bit of a showstopper as far as using MailTemplates to send attachmen

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: FINALLY it work's! I installed VerboseSecurity and repeat the same action'sit just work. Right, well, that's not good news ;-) As Jens pointed out VerboseSecurity shouldn't be installed in 2.8, which I only just found out...

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Chris Withers
Nicolas Georgakopoulos wrote: FINALLY it work's! I installed VerboseSecurity and repeat the same action'sit just work. Right, well, that's not good news ;-) As Jens pointed out VerboseSecurity shouldn't be installed in 2.8, which I only just found out... The fact that it makes

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Jens Vagelpohl
On 14 Oct 2005, at 11:02, Nicolas Georgakopoulos wrote: VerboseSecurity is *integrated* into Zope after 2.8, you don't install it separately. You enable it in zope.conf, see the "verbose- security" option. jens Thank's Jens I didn't know that. I find it "verbose- security" option in t

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Jens Vagelpohl
On 14 Oct 2005, at 10:41, Nicolas Georgakopoulos wrote: Sorry for the delay Chris but I read some where that VerboseSecurity is made only for Zope 2.7 and some users recommend not to install that product because it changes the security policies of zope with the authors ... VerboseSecurity

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Nicolas Georgakopoulos
*continues banging head against brick wall* My friend you have made me an official MailTemplate product beta tester ;-) Because it has no security declarations. If you bothered to install VerboseSecurity it would have told you this... MailHosts are how you send mail in Zope... MailTempl

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you using

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you using

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you using? Chris -- Simplistix -

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
David Convent wrote: Python scripts are run in a restricted environment, move your code to either an external method or a python zope product built on the filesystem How can I move the code to another python zope product ? ___ Zope maillist - Zope

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: 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 allo

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: 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

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread David Convent
Python scripts are run in a restricted environment, move your code to either an external method or a python zope product built on the filesystem Nicolas Georgakopoulos wrote: Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMETex

[Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Nicolas Georgakopoulos
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 acc