Load all general plugins of a category

svn: r16182
This commit is contained in:
Doug Blank 2010-11-11 20:12:33 +00:00
parent f69978f75e
commit 6ba569fa68

View File

@ -406,6 +406,14 @@ class BasePluginManager(object):
"""
return self.__pgr.general_plugins(category)
def load_plugin_category(self, category):
"""
Make sure all plugins of a type are loaded.
"""
for plugin in self.__pgr.general_plugins(category):
if not self.is_loaded(plugin):
self.load_plugin(plugin)
def get_plugin_data(self, category):
"""
Gets all of the data from general plugins of type category.