laied out proper functions in the parent object

This commit is contained in:
Hellow2 2023-03-28 09:21:41 +02:00
parent f4649cd3ac
commit 18bf066f77

View File

@ -86,17 +86,19 @@ class DatabaseObject:
def option_string(self) -> str: def option_string(self) -> str:
return self.__repr__() return self.__repr__()
def build_recursive_structures(self) -> bool:
return False
def compile(self) -> bool: def compile(self) -> bool:
""" """
compiles the recursive structures, compiles the recursive structures,
and does depending on the object some other stuff.
Args: no need to override if only the recursive structure should be build.
traceback (set, optional): Defaults to an empty set. override self.build_recursive_structures() instead
Returns:
bool: returns true if id has been found in set
""" """
pass
self.build_recursive_structures()
class MainObject(DatabaseObject): class MainObject(DatabaseObject):