Module e.c.plugin_registry

Part of elisa.core

No module docstring
Line # Kind Name Docs
62 Function is_development_egg Check if the distribution is a development egg.
75 Function get_plugin_toplevel_directory Get the top level directory of a plugin distribution.
103 Class InvalidComponentPath Undocumented
110 Class ComponentNotFound Undocumented
117 Class PluginNotFound Undocumented
120 Class PluginAlreadyEnabled Undocumented
123 Class PluginAlreadyDisabled Undocumented
126 Class DeserializationError Undocumented
129 Class PluginStatusMessage A plugin has been enabled or disabled.
147 Class PluginRegistry The plugin registry handles plugins in Elisa as long as it is running.
def is_development_egg(dist):
Check if the distribution is a development egg.

Development eggs store egg-info and python code in the same toplevel directory.

Parametersdistplugin distribution (type: Distribution )
def get_plugin_toplevel_directory(dist):

Get the top level directory of a plugin distribution.

Regular eggs and development eggs store files in different locations. Use this function to access the top level directory of a plugin eg:

   toplevel_directory = get_plugin_toplevel_directory(dist)
   sub_directory = '%s/%s' % (toplevel_directory, 'sub')
   requirement = pkg_resources.Requirement.parse(dist.project_name)
   if pkg_resources.resource_isdir(requirement, sub_directory):
       real_sub_path = pkg_resources.resource_filename(requirement,
               sub_directory)
Parametersdistplugin distribution (type: Distribution )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.