Class e.c.p.Plugin(object):

Part of elisa.core.plugin View In Hierarchy

Known subclasses: elisa.plugins.base.models.plugin.PluginModel

A plugin and its metadata.
Instance Variablesnamethe name of the plugin (type: unicode )
versionthe version number of the plugin (type: distutils.version.LooseVersion )
author_namethe name of the author of the plugin (type: unicode )
author_emailthe e-mail address of the author of the plugin (type: unicode )
platformsa list of compatible platforms (typical values are: linux, win32, macosx) (type: list of unicode )
licensethe license of the plugin (type: unicode )
websitethe home page of the plugin (type: unicode )
categorya unique category the plugin belongs to (type: unicode )
tagsa list of tags that define the plugin (type: list of unicode )
egg_namethe egg name (type: unicode )
urithe URI where the egg can be downloaded from (type: unicode )
titlea fancy (short) name for the plugin (type: unicode )
descriptiona detailed description of what the plugin does (type: unicode )
enabledwhether the plugin is currently enabled (type: bool )
Line # Kind Name Docs
64 Method __init__ Undocumented
80 Method runs_on_current_platform Test whether the plugin is compatible with the current platform.
100 Class Method from_distribution Class method that instantiates and returns a plugin object from a
124 Class Method from_dict Class method that instantiates and returns a plugin object from a
def __init__(self):
Undocumented
def runs_on_current_platform(self):
Test whether the plugin is compatible with the current platform.
ReturnsTrue if compatible with the current platform, False otherwise (type: bool )
@classmethod
def from_distribution(cls, distribution):
Class method that instantiates and returns a plugin object from a distribution as provided by pkg_resources.
Parametersdistributiona distribution as provided by pkg_resources (type: pkg_resources.Distribution )
Returnsa plugin object populated accordingly (type: Plugin )
@classmethod
def from_dict(cls, dictionary):
Class method that instantiates and returns a plugin object from a dictionary as provided by the plugin repository.
Parametersdictionarya dictionary as provided by the plugin repository (type: dict )
Returnsa plugin object populated accordingly (type: Plugin )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-04-27 17:55:12.