Adding FileUpload control and updated related components

This commit is contained in:
2025-11-18 21:54:49 +01:00
parent 3de9aff15c
commit 4199427c71
11 changed files with 179 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ class DbObject:
self._initializing = old_state
def __setattr__(self, name: str, value: str):
if name.startswith("_") or getattr(self, "_initializing", False):
if name.startswith("_") or name.startswith("ns") or getattr(self, "_initializing", False):
super().__setattr__(name, value)
return
@@ -74,7 +74,8 @@ class DbObject:
self._save_self()
def _save_self(self):
props = {k: getattr(self, k) for k, v in self._get_properties().items() if not k.startswith("_")}
props = {k: getattr(self, k) for k, v in self._get_properties().items() if
not k.startswith("_") and not k.startswith("ns")}
if props:
self._db_manager.save(self._name, props)