Trees | Indices | Help |
|
---|
|
object --+ | QAMELMixin
Base class allowing to process MEL baesd plugs as created by our metaclass
The following variables MUST be used to setup this class once you have derived from it:
- mel_index_proc:
- produdure name with signature func( ) returning string array in following format:
[n*3+0] = checkname : the name of the check, use CamelCase names or names_with_underscore The checkname is also used as id to identify the check lateron [n*3+1] = description: Single sentence desciption of the check targeted at the end user [n*3+2] = can_fix: Boolean value indicating whether the check can also fix the issue
- mel_check_proc:
- procedure called to actually process the given check, signature is:
func( check_name, should_fix ) returning list of strings as follows:
[0] = x number of fixed items [1] = header [1:1+x] = x fixed items [2+x:n] = n invalid items
items are either objects or in general anything you check for. The check is considered to be failed if there is at least one invalid item.
If you fixed items, all previously failed items should now be returned as valid items
Note: this class assumes it is used on a process
|
|||
__metaclass__ Metaclass allowing to create plugs based on a MEL implementation, allowing to decide whether checks are Python or MEL implemented, but still running natively in python |
|||
Configuration | |||
---|---|---|---|
check_plug_cls Specialized version of the QACheck allowing to use our own MEL attribute contianiing more information |
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|
|||
Configuration | |||
---|---|---|---|
mel_index_proc = None hash(x) |
|||
mel_check_proc = None hash(x) |
|||
static_mel_plugs = True
|
|||
check_result_cls = QACheckResult
|
|
|||
Inherited from |
|
|
|
|
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:13 2011 | http://epydoc.sourceforge.net |