I apologize. I cut and paste from two different attempts.
The section
try:
self.database = self.factory.newDatabase( self.databaseName );
except UnknownDatabase,ex:
print "Failed to connect to database. Exiting."
print ex.detail
sys.exit(0)
should read
try:
self.database = self.factory.newDatabase( self.databaseName );
except GEDI.UnknownDatabase,ex:
print "Failed to connect to database. Exiting."
print ex.detail
sys.exit(0)
When _this_ code runs I get
File "./DSgedi.py", line 38, in connect
except GEDI.UnknownDatabase,ex:
NameError: GEDI
Sorry for the mix up,
James
|