Thanks, really nice work.
If you import it then you loose portability.
What you can do is get it from the driver... One way (I believe there's a
simpler one somewhere else around here, but I haven't found it) is:
================================================================================
driver = model.hub.getConnection()._dbConnection.module
try:
# ...
except driver.IntegrityError, error:
# ...
================================================================================
--
Jorge Godoy <jgo...@gmail.com>