Look in lib/python/Products/PythonScripts/module_access_examples.py Florent Andreas Rippel <arippel@informatik.uni-kl.de> wrote:
Hi,
for using regular expressions in python script (import re ...) I used the explained method via a directory in lib/python/Products see
cat lib/python/Products/GlobalModules/__init__.py # Global module assertions for Python scripts from Products.PythonScripts.Utility import allow_module
allow_module('base64') allow_module('re') allow_module('time')
I can use all time attributes and methods, but when I'm calling e.g. re.compile("a").match("ba", 1) in the script I get a authentification window from zope. This happens for different plattforms. Any idea what additional rights are necessary or whats happening at that point? -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com