[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5069 - trunk/gnue-common/src/datasources
From: |
jan |
Subject: |
r5069 - trunk/gnue-common/src/datasources |
Date: |
Thu, 5 Feb 2004 10:20:01 -0600 (CST) |
Author: jan
Date: 2004-02-05 10:19:59 -0600 (Thu, 05 Feb 2004)
New Revision: 5069
Modified:
trunk/gnue-common/src/datasources/GConnections.py
Log:
add error message indicating that a driver still uses the old dbdriver api
Modified: trunk/gnue-common/src/datasources/GConnections.py
===================================================================
--- trunk/gnue-common/src/datasources/GConnections.py 2004-02-05 12:26:19 UTC
(rev 5068)
+++ trunk/gnue-common/src/datasources/GConnections.py 2004-02-05 16:19:59 UTC
(rev 5069)
@@ -245,6 +245,11 @@
tmsg = _("No database driver found for provider type '%s'") % driver
raise Exceptions.ProviderNotSupportedError, tmsg
+ if not hasattr(dbdriver,"Connection"):
+ tmsg = _("The database driver '%s' doesn't have a 'Connection'
object.\n"+\
+ "It has to be updated to the new driver API. --- "+\
+ "Please contact a gnue developer.") % driver
+ raise Exceptions.ProviderNotSupportedError, tmsg
conn = dbdriver.Connection(self, connection_name, parameters)
self._openConnections[connection_name] = conn
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5069 - trunk/gnue-common/src/datasources,
jan <=