View: Tools: Add tree model.

This commit is contained in:
parouby committed 2026-09-18 15:51:09 +02:00
1 parent ff3b5a320c
commit 288713ce5b
3 files changed
+127 -1

No files matched your search

+7
View File
@@ -185,6 +185,13 @@ class SQLSubModel(PamhyrID):
else:
self._owner_scenario = owner_scenario
def __str__(self):
t = type(self)
return (
f"'{t.__module__}.{t.__name__}" +
f"@{self._pamhyr_id}.{self._owner_scenario}'"
)
def must_be_saved(self):
"""Return True if this object MUST be save in the save file.