Native gui first steps: storage, box and companies are editable
This commit is contained in:
1 parent
1eea4058bf
commit
06a9834688
47 files changed
+3119
-883
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
from .dbrecord import DbRecord
|
||||
from yms.lookup import Table
|
||||
|
||||
class Cable(DbRecord):
|
||||
|
||||
@@ -13,3 +14,8 @@ class Cable(DbRecord):
|
||||
def __init__(self, db, cableid=None):
|
||||
super().__init__(db, cableid)
|
||||
self.title = _("Cable({})")
|
||||
|
||||
def save(self, commit=True):
|
||||
super().save(Table.CABLES)
|
||||
if commit:
|
||||
self.conn.commit()
|
||||
Reference in new issue
Block a user