hi all I'd like to be able to use the email python module (already installed in my zope's python) from a python script in zope. of course i get unathorized errors. is there a way to allow this? <--> george donnelly - http://www.zettai.net/ - "Quality Zope Hosting" Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
[Sergey Volobuev wrote (zope@phpv.khv.ru) on 7/3/03 3:55 AM]
I'd like to be able to use the email python module (already installed in my zope's python) from a python script in zope. of course i get unathorized errors.
Read the README.txt from Products/PythonScripts
thank, yes i tried that. I started over again and i still get this error: import of "email.Message" is unauthorized here is my GlobalModules __init__.py: # Global module assertions for Python scripts from Products.PythonScripts.Utility import allow_module allow_module('email') any ideas? <--> george donnelly - http://www.zettai.net/ - "Quality Zope Hosting" Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
Umm.. isn't the module name "smtplib"? On Thu, 3 Jul 2003, george donnelly wrote:
[Sergey Volobuev wrote (zope@phpv.khv.ru) on 7/3/03 3:55 AM]
I'd like to be able to use the email python module (already installed in my zope's python) from a python script in zope. of course i get unathorized errors.
Read the README.txt from Products/PythonScripts
thank, yes i tried that. I started over again and i still get this error:
import of "email.Message" is unauthorized
here is my GlobalModules __init__.py:
# Global module assertions for Python scripts from Products.PythonScripts.Utility import allow_module
allow_module('email')
any ideas?
<--> george donnelly - http://www.zettai.net/ - "Quality Zope Hosting" Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Dennis Allison wrote (allison@sumeru.stanford.EDU) on 7/3/03 3:11 PM]
Umm.. isn't the module name "smtplib"?
This is the module I;m working with http://mimelib.sourceforge.net/ and for future reference this is what i had to allow to get it to work from Products.PythonScripts.Utility import allow_module allow_module('email') allow_module('email.Header') allow_module('email.Message') allow_module('email.Parser') or at least just the email.Header, not sure yet. <--> george donnelly - http://www.zettai.net/ - "Quality Zope Hosting" Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
ooops... I came into the middle of the thread and didn't remember what it was you were trying to do. On Thu, 3 Jul 2003, george donnelly wrote:
[Dennis Allison wrote (allison@sumeru.stanford.EDU) on 7/3/03 3:11 PM]
Umm.. isn't the module name "smtplib"?
This is the module I;m working with
http://mimelib.sourceforge.net/
and for future reference this is what i had to allow to get it to work
from Products.PythonScripts.Utility import allow_module
allow_module('email') allow_module('email.Header') allow_module('email.Message') allow_module('email.Parser')
or at least just the email.Header, not sure yet.
<--> george donnelly - http://www.zettai.net/ - "Quality Zope Hosting" Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Dennis Allison -
george donnelly -
Sergey Volobuev