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

@ -85,18 +85,20 @@ class DatabaseObject:
@property
def option_string(self) -> str:
return self.__repr__()
def build_recursive_structures(self) -> bool:
return False
def compile(self) -> bool:
"""
compiles the recursive structures,
Args:
traceback (set, optional): Defaults to an empty set.
Returns:
bool: returns true if id has been found in set
and does depending on the object some other stuff.
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):