[Zope] porting external method to python script

Jan-Frode Myklebust janfrode@parallab.uib.no
Fri, 14 Sep 2001 16:56:21 +0200


> 
>  I need to port an external method to a python scrip. What i do is generate
>  a md5 checksum. how do i use md5 in python scripts?
>  thanks,

You need to tell zope that the md5-module is allowed
inside Zope. To do this you need to edit
lib/python/Products/GlobalModules/__init__.py

It should look like:

-----------------------------------------------
from Products.PythonScripts.Utility import
allow_module, allow_class
from AccessControl import ModuleSecurityInfo,
ClassSecurityInfo
from Globals import InitializeClass

allow_module('md5')
-----------------------------------------------

At least this is how I enabled 'crypt'.


  -jf