コード例 #1
0
ファイル: base.py プロジェクト: davidmorrison/indico
 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")
コード例 #2
0
ファイル: base.py プロジェクト: lukasnellen/indico
 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")