Native gui make almost every data editable
This commit is contained in:
1 parent
b8ac8d0185
commit
1a6674c819
48 files changed
+2168
-737
No files matched your search
@@ -94,7 +94,7 @@ class AppContext:
|
||||
self.ui_path = os.path.join(self.get_sharepath(), "yms", "ui")
|
||||
self.textdomain = "ymsgui" # static here for early initialization
|
||||
self.localedir = "locale"
|
||||
self.datefmt = '%d.%m.%Y'
|
||||
self.datefmt = 'Y-m-d' # key into map
|
||||
self.scan_enabled = False
|
||||
# system settings stored in database
|
||||
self.curr_sym = '€'
|
||||
@@ -167,6 +167,12 @@ class AppContext:
|
||||
return "/usr/share"
|
||||
return ""
|
||||
|
||||
def get_datefmt(self):
|
||||
return self.datefmt_map[self.datefmt][0]
|
||||
|
||||
def get_datefmt_placeholder(self):
|
||||
return self.datefmt_map[self.datefmt][1]
|
||||
|
||||
class Frontend:
|
||||
|
||||
def __init__(self, context):
|
||||
@@ -235,7 +241,7 @@ class Frontend:
|
||||
self.db.cur.execute(sql, (self.db_poll_ts,))
|
||||
for row in self.db.cur.fetchall():
|
||||
print(f"refresh table based list #{row[0]}")
|
||||
# TODO get module name für changes in table
|
||||
# TODO get module name for changes in table
|
||||
modulemap = {
|
||||
#Table.VESSEL: "base",
|
||||
#Table.USERS: "base",
|
||||
|
||||
Reference in new issue
Block a user