MECO™ API Reference
|
[ ABSTRACT CLASS ] - Abstract dependency class. More...
Public Member Functions | |
def | __init__ (self, parent=None, data=None, **kwargs) |
Constructor. More... | |
def | displayAutoIgnoredMessage (self) |
Display auto ignored message. More... | |
def | reset (self) |
Reset this dependency. More... | |
def | run (self) |
Run the dependency. More... | |
def | runFix (self) |
Run fix. More... | |
def | runAction (self) |
Run action. More... | |
def | isActionRunnable (self) |
Whether action is runnable for given condition. More... | |
def | shouldInitialize (self) |
Whether this dependency should be initialized. More... | |
PROPERTIES | |
def | data (self) |
Data. More... | |
def | kwargs (self) |
Keyword arguments. More... | |
def | name (self) |
Name of the dependency. More... | |
def | description (self) |
Description about the dependency. More... | |
def | isActive (self) |
Whether this dependency is active. More... | |
def | hasFix (self) |
Whether this dependency has fix. More... | |
def | runFixAutomatically (self) |
Whether auto fix should run automatically. More... | |
def | hasAction (self) |
Whether this dependency has action. More... | |
def | isIgnorable (self) |
Whether this dependency is ignorable. More... | |
def | isIgnored (self) |
Whether this dependency is ignored. More... | |
def | requiresDescriptionWhenIgnored (self) |
Whether this dependency requires description when ignored. More... | |
def | failureMessage (self) |
The last failure message that was recorded for this dependency. More... | |
def | isExecuted (self) |
Whether this dependency is executed. More... | |
def | isSucceeded (self) |
Whether this dependency succeeded after execution. More... | |
Static Public Attributes | |
int | MESSAGE_PADDING = 52 |
[ int ] - Message padding. | |
signalInfoOccurred = QtCore.Signal(str) | |
[ Signal ] - Signal emitted by _setInfo method. | |
signalSuccessOccurred = QtCore.Signal(str) | |
[ Signal ] - Signal emitted by _setSuccess method. | |
signalWarningOccurred = QtCore.Signal(str) | |
[ Signal ] - Signal emitted by _setWarning method. | |
signalFailureOccurred = QtCore.Signal(str) | |
[ Signal ] - Signal emitted by _setFailure method. | |
signalResultOccurred = QtCore.Signal(bool) | |
[ Signal ] - Signal emitted by _setInfo and _setFailure methods | |
[ ABSTRACT CLASS ] - Abstract dependency class.
def mProcess.dependencyAbs.Dependency.__init__ | ( | self, | |
parent = None , |
|||
data = None , |
|||
** | kwargs | ||
) |
Constructor.
parent | [ QObject | None | in ] - Parent. |
data | [ mProcess.dataLib.Data | None | in ] - Data. |
kwargs | [ dict | None | in ] - Keyword arguments. |
N/A |
Reimplemented in mMecoRelease.processes.releasePreDep.genericCheckPackageDevelopmentLocationDep.GenericCheckPackageDevelopmentLocation, mMecoRelease.processes.releasePreDep.genericCheckEndOfWeekDep.GenericCheckEndOfWeek, mMecoRelease.processes.releasePreDep.genericCheckPackageVersionForReleasingDep.GenericCheckPackageVersionForReleasing, mMecoRelease.processes.releasePostDep.genericSendNotificationDep.GenericSendNotification, and mMecoRelease.processes.releasePreDep.genericDisplayPackageInfoDep.GenericDisplayPackageInfo.
def mProcess.dependencyAbs.Dependency.data | ( | self | ) |
def mProcess.dependencyAbs.Dependency.kwargs | ( | self | ) |
Keyword arguments.
N/A |
def mProcess.dependencyAbs.Dependency.name | ( | self | ) |
Name of the dependency.
N/A |
def mProcess.dependencyAbs.Dependency.description | ( | self | ) |
Description about the dependency.
N/A |
def mProcess.dependencyAbs.Dependency.isActive | ( | self | ) |
Whether this dependency is active.
N/A |
def mProcess.dependencyAbs.Dependency.hasFix | ( | self | ) |
Whether this dependency has fix.
N/A |
def mProcess.dependencyAbs.Dependency.runFixAutomatically | ( | self | ) |
Whether auto fix should run automatically.
N/A |
def mProcess.dependencyAbs.Dependency.hasAction | ( | self | ) |
Whether this dependency has action.
N/A |
def mProcess.dependencyAbs.Dependency.isIgnorable | ( | self | ) |
Whether this dependency is ignorable.
N/A |
def mProcess.dependencyAbs.Dependency.isIgnored | ( | self | ) |
Whether this dependency is ignored.
N/A |
def mProcess.dependencyAbs.Dependency.requiresDescriptionWhenIgnored | ( | self | ) |
Whether this dependency requires description when ignored.
N/A |
def mProcess.dependencyAbs.Dependency.failureMessage | ( | self | ) |
The last failure message that was recorded for this dependency.
N/A |
def mProcess.dependencyAbs.Dependency.isExecuted | ( | self | ) |
Whether this dependency is executed.
N/A |
def mProcess.dependencyAbs.Dependency.isSucceeded | ( | self | ) |
Whether this dependency succeeded after execution.
N/A |
def mProcess.dependencyAbs.Dependency.displayAutoIgnoredMessage | ( | self | ) |
Display auto ignored message.
Ignorable dependencies could be ignored by the container if they fail. In such case, this method will be invoked to notify the user.
N/A |
def mProcess.dependencyAbs.Dependency.reset | ( | self | ) |
Reset this dependency.
N/A |
def mProcess.dependencyAbs.Dependency.run | ( | self | ) |
Run the dependency.
mProcess.exceptionLib.DependencyError | - No run method is available for this run mode. |
def mProcess.dependencyAbs.Dependency.runFix | ( | self | ) |
Run fix.
mProcess.exceptionLib.DependencyError | - No run fix method is available for this run mode. |
def mProcess.dependencyAbs.Dependency.runAction | ( | self | ) |
Run action.
NotImplementedError | - If this method is not implemented in child class when _hasAction True. |
def mProcess.dependencyAbs.Dependency.isActionRunnable | ( | self | ) |
Whether action is runnable for given condition.
This method is provided so GUI can decide whether to show the run action button.
N/A |
def mProcess.dependencyAbs.Dependency.shouldInitialize | ( | self | ) |
Whether this dependency should be initialized.
Implement this method to prevent child class instances from being initialized by raising mProcess.exceptionLib.DependencyError exception. Method must return True explicitly otherwise.
N/A |