Utility.py in PythonScripts
Hi Just discovered Utility.py in the PythonScripts folder. I am running my own server for my own app development and I'd like to run 're' and 'mysql' from PythonScripts. First impression is that I can - reality is a little different Have created folder with __init__.py and added code as per ReadMe allow_module( 'pre' ) stopped/started server Shows up Ok in ControlPanel Created a script import pre Option = "xxxxx" m = pre.match( "xx(x)xx", Option ) if m: print m.group(0) return printed match works Ok but group is unauthorised. Any takers TIA David Kyte
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
participants (2)
-
David Kyte -
Dieter Maurer