Changeset 4538
- Timestamp:
- 10/02/08 07:00:25 (2 months ago)
- Files:
-
- trunk/ide/CxnEditor.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ide/CxnEditor.py
r4039 r4538 274 274 # Create a connection object. 275 275 ci = dabo.db.dConnectInfo(connInfo=self.connDict[self.currentConn]) 276 mb = dui.stop 277 mbTitle = _("Connection Test") 276 278 try: 277 279 conn = ci.getConnection() 278 280 conn.close() 279 except:280 conn = None281 282 if conn:283 281 msg = _("The connection was successful!") 284 282 mb = dui.info 285 else: 286 msg = _("Unable to make connection") 287 mb = dui.stop 288 mb(message=msg, title="Connection Test") 283 except ImportError, e: 284 msg = _("Python Import Error: %s") % e 285 mbTitle += _(": FAILED!") 286 except StandardError, e: 287 msg = _("Could not connect to the database: %s") % e 288 mbTitle += _(": FAILED!") 289 mb(message=msg, title=mbTitle) 289 290 290 291
