33 |
import sys |
import sys |
34 |
from gnue.common.apps import GDebug |
from gnue.common.apps import GDebug |
35 |
from gnue.common.datasources import GDataObjects |
from gnue.common.datasources import GDataObjects |
36 |
from gnue.common.datasources.drivers.DBSIG2.Driver \ |
from gnue.common.datasources.drivers import DBSIG2 |
|
import DBSIG2.RecordSet, DBSIG2.ResultSet, DBSIG2.DataObject, \ |
|
|
DBSIG2.DataObject_SQL, DBSIG2.DataObject_Object |
|
|
|
|
|
try: |
|
|
import gadfly |
|
|
except ImportError, mesg: |
|
|
GDebug.printMesg(1,mesg) |
|
|
print "-"*79 |
|
|
print _("\nCould not load gadfly. For Gadfly support, please install \n") \ |
|
|
+ _("GadflyB5 1.0.0 pr1 or later from") \ |
|
|
+ "http://gadfly.sourceforge.net\n" |
|
|
print _("Error: %s") % mesg |
|
|
print "-"*79 |
|
|
sys.exit() |
|
37 |
|
|
38 |
|
raise "This data driver has not been upgraded to the new format." |
39 |
|
|
40 |
|
|
41 |
class Gadfly_RecordSet(DBSIG2.RecordSet): |
import gadfly |
42 |
|
|
43 |
|
|
44 |
|
class Gadfly_RecordSet(DBSIG2.RecordSet): |
45 |
pass |
pass |
46 |
|
|
47 |
|
|