web.pluginmanager.plugins.dependency.Dependency

Package web :: Package pluginmanager :: Package plugins :: Module dependency :: Class Dependency |
[hide private]
[frames] | no frames]

# Class Dependency

source code

This class relates a plugin with a version of another. When a plugin has a dependency means this plugin NEEDS the specified version of the plugin to work. If dependency not unmet the plugin can't be installed.

Instance Methods | [hide private]
__init__(self, dependon, relation, major, minor, release) | source code
__str__(self) | source code
is_met_by(self, plugin) Returns if the given plugin mets with the requierement of the dependency. | source code
is_met(self) Return whether there is a plugin that mets with the requirement of the dependency. | source code
get_plugin(self) If is_met() returns true, this returns the instance of the plugin. | source code

Method Details | [hide private]

### is_met(self) | source code
Return whether there is a plugin that mets with the requirement of the dependency. It will NOT check if the plugin is installed or enabled, it will only check if the plugin has valid version.