From 6ba569fa6841eb7cc38b5c2bd289bc8b2ee8b6d8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 11 Nov 2010 20:12:33 +0000 Subject: [PATCH] Load all general plugins of a category svn: r16182 --- src/gen/plug/_manager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index 85465d30a..b3f35fbc3 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -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.