[Zope-DB] SQL exception handling questions
Luis Mariano Luporini
Sat, 22 Mar 2003 19:57:41 -0300
You were right, allow_module expects a string so "psycopg" solved it.
Thank you very much for your help Dieter.
Dieter Maurer wrote:
>Luis Mariano Luporini wrote at 2003-3-17 18:47 -0300:
> > Ok. I've created a new Zope Product following the directions in the
> > README of PythonScript
> > The module name is GlobalModules and the directory contains a file
> > called __init__.py with the following:
> > ===== Start
> > # Global module assertions for Python scripts
> > from Products.PythonScripts.Utility import allow_module
> > allow_module(psycopg)
>The parameter to "allow_module" is either a module name or
>a module object (I do not know what).
>If it is a module name, you must pass a string.
>If it is a module object, you must import the object before
>you can pass it.