[Zope-DB] access to DB.Database_Error

Godefroid Chapelle gotcha@swing.be
Thu, 02 May 2002 11:59:39 +0200


Hi,

I am trying to build a set of Python scripts accessing DB independant of 
the DA used.

I do not know how to import the DB.Database_Error in order to have 
selective try: except: catches.

I tried

from Shared.DC.ZRDB.db_dbi import DB
Database_error = DB.Database_Error

but I get an unauthorized to DC module.

Can anyone help ?

Thanks
--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849