Esempio n. 1
0
 def reloadPluginType(self, type):
     """ Reloads plugins of a given type and updates their information
     """
     Plugins.reloadPluginsByType(type)
     if self.hasPluginType(type, mustBeActive = False):
         self.getPluginType(type).updateInfo()
     else:
         raise PluginError("Error while trying to reload plugins of the type: " + type + ". Plugins of the type " + type + "do not exist")
Esempio n. 2
0
 def reloadPluginType(self, type):
     """ Reloads plugins of a given type and updates their information
     """
     Plugins.reloadPluginsByType(type)
     if self.hasPluginType(type, mustBeActive=False):
         self.getPluginType(type).updateInfo()
     else:
         raise PluginError(
             "Error while trying to reload plugins of the type: " + type +
             ". Plugins of the type " + type + "do not exist")