Fix pluginmanagerbase using new component module

This commit is contained in:
Andrew Resch 2010-03-20 19:29:36 -07:00
parent 606b623d73
commit 5945b24476

View File

@ -139,7 +139,7 @@ class PluginManagerBase:
log.exception(e)
continue
instance.enable()
if self.get_state() == component.COMPONENT_STATE.index("Started"):
if self._component_state == "Started":
component.start(instance.plugin.get_component_name())
plugin_name = plugin_name.replace("-", " ")
self.plugins[plugin_name] = instance