[Zope] Utility.py in PythonScripts

Dieter Maurer dieter@handshake.de
Tue, 11 Jun 2002 21:43:01 +0200


David Kyte writes:
 > Just discovered Utility.py in the PythonScripts folder.
 > ...
 > Have created folder with __init__.py and added code as per ReadMe
 > 
 > allow_module( 'pre' )
 > ...
 > import pre
 > ...
 > m = pre.match( "xx(x)xx", Option )
 > if m: print m.group(0)
 > ...
 > match works Ok but group is unauthorised.
You need an additional "allow_class" for the match object class
(don't know its name, but simply look at the source).


Dieter