Remove obnoxious error window
Do we really need that annoying error note about table viewer not working any longer? It's useless with postgres backend anyhow, so might as well kill it off entirely.
This commit is contained in:
parent
14dc35ef81
commit
dd4aeffa4f
|
@ -24,19 +24,11 @@ import fpdb_simple
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import MySQLdb
|
import MySQLdb
|
||||||
except:
|
except: # Try to make postgres case cleaner, and kill the error note
|
||||||
diaSQLLibMissing = gtk.Dialog(title="Fatal Error - SQL interface library missing", parent=None, flags=0, buttons=(gtk.STOCK_QUIT,gtk.RESPONSE_OK))
|
try:
|
||||||
|
import psycopg2
|
||||||
label = gtk.Label("Please note that the table viewer only works with MySQL, if you use PostgreSQL this error is expected.")
|
except ImportError:
|
||||||
diaSQLLibMissing.vbox.add(label)
|
pass
|
||||||
label.show()
|
|
||||||
|
|
||||||
label = gtk.Label("Since the HUD now runs on all supported plattforms I do not see any point in table viewer anymore, if you disagree please send a message to steffen@sycamoretest.info")
|
|
||||||
diaSQLLibMissing.vbox.add(label)
|
|
||||||
label.show()
|
|
||||||
|
|
||||||
response = diaSQLLibMissing.run()
|
|
||||||
#sys.exit(1)
|
|
||||||
|
|
||||||
import fpdb_import
|
import fpdb_import
|
||||||
import fpdb_db
|
import fpdb_db
|
||||||
|
|
Loading…
Reference in New Issue
Block a user