Config
Config class that represents the configuration of a process. A configuration is a collection of parameters
data: DictInitialize self. See help(type(self)) for accurate signature.
bool - TrueCopy the config to a new Config with a new Id
Configbool - Falsebool - Falsebool - FalseReturns all the parameters including default value if not provided
raises MissingConfigsException: If one or more mandatory params where not provided it raises a MissingConfigsException
DictstrParamSpecConfigSpecsReturns the value of a parameter by its name
strAnyDictstrboolReturns True if the model is saved in db, False otherwise
boolboolTest if a parameter exists
strboolModelTypeSets the data
set force_insert to True to force creation of the object
set skip_hook to True to skip the before insert or update hook
ModelTypeConfigSpecsSets the value of a parameter by its name
strAnybool - FalseSet config parameters
DictConfigDTOExport the config to a dict
bool - FalseConfigSimpleDTObool - TrueDictAnyParamSpecTest if a parameter exists and is not none
strboolAnyMethod call after all the table are inited
Useful when use DeferredForeignKey to create the foreign key manually latter
Method call after the table is created
Usefull to create the full text indexes
AnyAnybool - Truebool - TrueAnyAnybool - Truebool - TrueAnyAnyAnyAnyAnyReturns the name of the class
bool - Falsebool - Falsebool - FalsestrReturns True if the column exists in the table
strboolAnyCreate a foreign key for a Foreign key field only if the foreign key does not exists
ForeignKeyFieldMethod to create a full text index
ListstrCreate model table
AnyDrop model table
Execute a raw SQL query. Can use the [TABLE_NAME] to replace by the table name
strAnyAnystrboolImport the config from a dto
ConfigSimpleDTOConfigReturns the full name of the class
bool - Falsebool - FalsestrAnyAnystrOptionalGet by ID and throw 404 error if object not found
strModelTypeListListDatabaseProxyReturns the (current) DbManager of this model
TypeAnyAnyReturns the table name of this class
strAnyReturns True if the index exists in the table
strboolGet all the classes that inherit this class
ListAnyAnyAnyAnyAnyAnyAnyAnyAnyAnyAnyAnyPerforms full-text search on the field. Must be overrided by child class to work
strstrModelSelectAnyAnyAnyAnyAnyAny