Attached is the latest patch of my modifications to DBConnection.py to
add support for:
- getSupportedDrivers()
- connectionByURI()
- DBAPI.isSupported()
- DBAPI.getURI()
I messed around with using urlparse for the URI parsing...It is
possible, but you need to add all the different db schemas to lists
internal to urlparse, for example:
urlparse.uses_relative.extend(getSupportedDrivers())
urlparse.uses_netloc.extend(getSupportedDrivers())
urlparse.uses_query.extend(getSupportedDrivers())
I was hesitant to do this because it would possibly change the behaviour
of urlparse once SQLObject was imported. So for now the URI parsing is
done by my ugly re based code.
Cheers,
Chris
--
Chris AtLee <ch...@at...>
|