summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@avencall.com>2013-02-08 11:53:16 +0100
committerNoe Rubinstein <nrubinstein@avencall.com>2013-02-08 11:53:16 +0100
commit0b469fb4e8d8f74ec9a0c0358f613512c58dba5e (patch)
treee788489b8c31d2c42fcb575978688b3c27f3bcab
parent8fd01ffe9d4b8441899f7c59d34a1e67a9bcdef0 (diff)
Better debug messages, and fix an UI bug
-rwxr-xr-xgui/util.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gui/util.py b/gui/util.py
index b554279..bf9f0c9 100755
--- a/gui/util.py
+++ b/gui/util.py
@@ -102,8 +102,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
elif not self.programUconCheckBox.isChecked(): self.programUconCheckBox.toggle()
for i in [self.flashNewRadioButton,
- self.reflashRadioButton,
- self.bootRomLineEdit,
+ #self.reflashRadioButton,
+ #self.bootRomLineEdit,
self.bootRomLabel,
self.findPushButton]:
@@ -294,10 +294,12 @@ def _saveName(field, serial, name):
import sqlite3
conn = sqlite3.connect(config.database)
c = conn.cursor()
- print('UPDATE xioh_data SET '+field+' = ? WHERE serial_number=?', (name,serial))
c.execute('UPDATE xioh_data SET '+field+' = ? WHERE serial_number=?', (name,serial))
conn.commit()
- print("Number of changes:", conn.total_changes)
+ if conn.total_changes < 1:
+ print("WARNING: No row was changed trying to update ", field,
+ "for board", serial,
+ "to value", name)
c.close()
def saveCorebootName(serial, name): _saveName("coreboot_version", serial, name)