Login
Back to bricks list
Introduction Version

TypingManager

Functions

CHECK_TYPING_NAME_COMPATIBILITY - @classmethod

Method to check if the typing name is compatible with the current lab

Parameters:
NameTypeDefault valueDescription
typing_namestr
GET_AND_CHECK_TYPE_FROM_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
Return type:
Type
GET_OBJECT_WITH_TYPING_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
object_idstr
Return type:
Model
GET_OBJECT_WITH_TYPING_NAME_AND_ID - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
idstr
Return type:
Model
GET_TYPE_FROM_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
typing_namestr
Return type:
Optional
GET_TYPING_FROM_NAME - @classmethod

Get typing from name and return None if not found

Parameters:
NameTypeDefault valueDescription
typing_namestr
Return type:
Optional
GET_TYPING_FROM_NAME_AND_CHECK - @classmethod

Get typing from name and check if it exists

Parameters:
NameTypeDefault valueDescription
typing_namestr
Return type:
Typing
INIT_TYPINGS - @classmethod

Call this method after all the bricks are loaded to refresh the ancestors list and brick version of typing

REGISTER_TYPING - @classmethod

Register the typing into the manager to save it in the database Return the typing unique name

Parameters:
NameTypeDefault valueDescription
typingTyping
object_classType
SAVE_OBJECT_TYPES_IN_DB - @classmethod
TYPE_IS_REGISTER - @classmethod
Parameters:
NameTypeDefault valueDescription
model_typeType
Return type:
bool