Package yapsy :: Module PluginManager :: Class PluginInfo
[hide private]

Class PluginInfo

source code

object --+
         |
        PluginInfo
Known Subclasses:
VersionedPluginManager.VersionedPluginInfo

Gather some info about a plugin such as its name, author, description...

Instance Methods [hide private]
 
__init__(self, plugin_name, plugin_path)
Set the namle and path of the plugin as well as the default values for other usefull variables.
source code
 
_getIsActivated(self)
Return the activated state of the plugin object.
source code
 
setVersion(self, vstring)
Set the version of the plugin.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]
  is_activated
Return the activated state of the plugin object.

Inherited from object: __class__

Method Details [hide private]

__init__(self, plugin_name, plugin_path)
(Constructor)

source code 

Set the namle and path of the plugin as well as the default values for other usefull variables.

Warning

The path attribute is the full path to the plugin if it is organised as a directory or the full path to a file without the .py extension if the plugin is defined by a simple file. In the later case, the actual plugin is reached via plugin_info.path+'.py'.

Overrides: object.__init__

_getIsActivated(self)

source code 
Return the activated state of the plugin object. Makes it possible to define a property.

setVersion(self, vstring)

source code 

Set the version of the plugin.

Used by subclasses to provide different handling of the version number.


Property Details [hide private]

is_activated

Return the activated state of the plugin object. Makes it possible to define a property.
Get Method:
yapsy.PluginManager.PluginInfo._getIsActivated(self) - Return the activated state of the plugin object.