Native gui make almost every data editable

This commit is contained in:
thooge committed 2026-11-04 12:45:16 +01:00
1 parent b8ac8d0185
commit 1a6674c819
48 files changed
+2168 -737

No files matched your search

+8 -3
View File
@@ -8,13 +8,18 @@ class Fuse(DbRecord):
table = "fuse"
pk_field = "fuseid"
fields = ('fuseid', 'vid', 'fnumber', 'ftype', 'current', 'cableid',
'eid', 'location', 'description', 'remarks')
'eid', 'location', 'description', 'color', 'remarks')
def __init__(self, db, fuseid=None):
super().__init__(db, fuseid)
self.title = _("Fuse({})")
def save(self, commit=True):
super().save(Table.FUSES)
if not super().save(Table.FUSES):
return False
if commit:
self.conn.commit()
try:
self.conn.commit()
except mariadb.Error as e:
return False
return True