dabo Commit
Revision 5477
Date: 2009-10-21 09:58:41 -0700 (Wed, 21 Oct 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5477

Changed:
U   trunk/ide/wizards/AppWizard/AppWizard.py

Log:
This fixes the AppWizard problem reported by David Henry this morning. It
could be improved by displaying the exception in the stop dialog, but at 
least a password failure doesn't result in an unusable AppWizard anymore.

By the way, it's been this way for at least 2 years...



Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py    2009-10-20 04:16:51 UTC (rev 
5476)
+++ trunk/ide/wizards/AppWizard/AppWizard.py    2009-10-21 16:58:41 UTC (rev 
5477)
@@ -297,13 +297,13 @@
                                        ci.Port = None
                        # Try to get a connection:
                        busy = dabo.ui.busyInfo(_("Connecting to database..."))
-                       # try:
-                       conn = dabo.db.dConnection(ci)
-                       cursor = self.Form.cursor = 
conn.getDaboCursor(ci.getDictCursorClass())
-                       cursor.BackendObject = ci.getBackendObject()
                        try:
+                               conn = dabo.db.dConnection(ci)
+                               cursor = self.Form.cursor = 
conn.getDaboCursor(ci.getDictCursorClass())
+                               cursor.BackendObject = ci.getBackendObject()
                                tables = cursor.getTables()
                        except Exception, e:
+                               busy = None
                                traceback.print_exc()
                                dabo.ui.stop(_("Could not connect to the 
database server. " + 
                                                "Please check your parameters 
and try again."))




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to