30 Jan
2004
30 Jan
'04
5:14 p.m.
On Jan 30, 2004, at 10:54 AM, Rachel Willmer wrote:
d) I then create a Python Script file which looks like this:
from Products.GlobalModules import base64 def testing() : print base64.encodestring("hello") return printed
e) I call the script and get
Error Type: NameError Error Value: global name 'base64' is not defined
What else do I need to do to get this to work? or, what am I doing wrong?
Just import base64 as you would in any other Python script: import base64 No reference to the Product needed. ___/ / __/ / ____/ Ed Leafe Linux Love: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep