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,12 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
from .dbrecord import DbRecord
|
||||
from yms.lookup import Table
|
||||
|
||||
# names for fixed dropdown values
|
||||
GENERIC = 0
|
||||
TANK = 1
|
||||
EXT = 2
|
||||
|
||||
class Storage(DbRecord):
|
||||
|
||||
@@ -14,10 +20,10 @@ class Storage(DbRecord):
|
||||
self.title = _("Storage({})")
|
||||
|
||||
def save(self, commit=True):
|
||||
super().save()
|
||||
super().save(Table.STORAGE)
|
||||
if commit:
|
||||
self.conn.commit()
|
||||
|
||||
def delete(self):
|
||||
# there must be no assiciated data!
|
||||
# there must be no associated data!
|
||||
pass
|
||||
Reference in new issue
Block a user