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