[Zope] Python and ODBC

giquel valerie vgiquel@yahoo.fr
Fri, 3 Aug 2001 12:16:01 +0200 (CEST)


Hello !

we try to integrate a Python Script in Zope.
This script connect to a MySQl DataBase via an ODBC llink.

# open the database
        connexion=odbc.odbc('python_mysql/root/')
        curseur=connexion.cursor()
        # runnig the SQL query
        curseur.execute('select * from produits')

we have imported the modules ODBC and DBI. When we run the script,
zope ask to indentify us. There is an error after.
We have authorized the import of these modules creating a new file
called __init__.py.

Is it normal that Zope ask us to identify at each running script ?
Could you help us ?

Thanks a lot
 
Solenn & Valérie


=====


___________________________________________________________
Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos : http://fr.photos.yahoo.com