Work on native gui: list views for objects; set version to 0.2.2
This commit is contained in:
@@ -42,6 +42,7 @@ from yms.lookup import Lookup
|
||||
from yms.view.base import BaseView
|
||||
from yms.view.storage import StorageView
|
||||
from yms.view.boxes import BoxesView
|
||||
from yms.view.companies import CompaniesView
|
||||
from yms.view.equipment import EquipmentView
|
||||
from yms.view.inventory import InventoryView
|
||||
from yms.view.provisions import ProvisionsView
|
||||
@@ -52,6 +53,12 @@ from yms.view.fuses import FusesView
|
||||
from yms.view.documents import DocumentsView
|
||||
from yms.view.status import StatusView
|
||||
|
||||
__author__ = "Thomas Hooge"
|
||||
__copyright__ = "Copyright 2024-2026"
|
||||
__version__ = "0.2.2"
|
||||
__email__ = "thomas@hoogi.de"
|
||||
__status__ = "Development"
|
||||
|
||||
class AppContext:
|
||||
|
||||
cfg = {
|
||||
@@ -76,12 +83,17 @@ class AppContext:
|
||||
}
|
||||
|
||||
def __init__(self):
|
||||
self.__version__ = __version__
|
||||
self.db = None
|
||||
self.user = None
|
||||
self.vessel = None
|
||||
self.ui_path = os.path.join(self.get_sharepath(), "yms", "ui")
|
||||
self.textdomain = "ymsgui"
|
||||
self.datefmt = '%d.%m.%Y'
|
||||
# system settings stored in database
|
||||
self.curr_sym = '€'
|
||||
self.img_max_width = 1024
|
||||
self.img_max_height = 768
|
||||
|
||||
def set_db(self, db):
|
||||
self.db = db
|
||||
@@ -121,6 +133,7 @@ class Frontend:
|
||||
"base": BaseView(context),
|
||||
"storage": StorageView(context),
|
||||
"box": BoxesView(context),
|
||||
"companies": CompaniesView(context),
|
||||
"equipment": EquipmentView(context),
|
||||
"inventory": InventoryView(context),
|
||||
"provisions": ProvisionsView(context),
|
||||
@@ -182,6 +195,8 @@ def create_config(cfgfile):
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
print("Startup sequence entered...")
|
||||
|
||||
context = AppContext()
|
||||
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
|
||||
Reference in New Issue
Block a user