Public Member Functions | |
def | __init__ |
def | condition |
def | getInstance |
def | logger |
def | postRun |
def | preRun |
def | run |
Static Public Attributes | |
list | assetTypes = [] |
enable = True | |
list | hostApps = [] |
priority = None |
Fixer objects are used to fix validation problems. Fixer objects are linked to a Validation objects and are optionally defined to automatically fix validation.
def assetQC.api.fixer.Fixer.__init__ | ( | self, | |
instance | |||
) |
def assetQC.api.fixer.Fixer.condition | ( | self, | |
ctx | |||
) |
Method for sub-classes to override with a condition that the object will run in. Return True to indicate the Fixer should be run, False otherwise.
def assetQC.api.fixer.Fixer.getInstance | ( | self | ) |
Return the AssetInstance object this Fixer will operate on.
def assetQC.api.fixer.Fixer.logger | ( | self | ) |
def assetQC.api.fixer.Fixer.postRun | ( | self, | |
ctx | |||
) |
Run after the Fixer 'run' method. Users can optionally override this method in a sub-class. :param ctx: Context of function. :type ctx: assetQC.api.context.Context :return: None
def assetQC.api.fixer.Fixer.preRun | ( | self, | |
ctx | |||
) |
Run before the Fixer 'run' method. Users can optionally override this method in a sub-class. :param ctx: Context of function. :type ctx: assetQC.api.context.Context :return: None
def assetQC.api.fixer.Fixer.run | ( | self, | |
ctx | |||
) |
Runs the fixing function on the AssetInstance. Users MUST override this method in a sub-class. :param ctx: Context of function. :type ctx: assetQC.api.context.Context :return: None
list assetQC::api::fixer.Fixer::assetTypes = [] [static] |
assetQC::api::fixer.Fixer::enable = True [static] |
list assetQC::api::fixer.Fixer::hostApps = [] [static] |
assetQC::api::fixer.Fixer::priority = None [static] |