[Zope] importing md5 module in python script
keo
keo@goa.hu
Mon, 21 Oct 2002 06:35:48 +0200 (CEST)
hi!
i want to use the md5 module,
i made a folder Imports, and a file __init__.py in it, containing:
from Products.PythonScripts.Utility import allow_module,
allow_class
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
from Globals import InitializeClass
allow_module("md5")
now i can import md5, and use m=md5.new(), but still cant use
m.hexdigest(), it keeps on giving 401 unauthorized replies ...
i tried to add ModuleSecurityInfo('md5').declarePublic('hexdigest') to
__init__.py but didnt help.
what am i doing wrong?
thanks,
k