Exemplo n.º 1
0
 def setupDispatchers(self, configure):
     ''' setup dispatchers '''
     print "Start setting up dispatcher......"
     for groupName in PluginManager.groupNames:
         for pluginName in self.plugins[groupName]:
             receiverStrings = configure.getOption(pluginName + '_mapping', 'receiver')
             if receiverStrings:
                 self.__setup_dispatcher(groupName, pluginName, splitByComma(receiverStrings))
Exemplo n.º 2
0
    def runFeederPlugins(self):
        print 'Start running feeders......'
        feederStrings = self.configure.getOption('app_main', 'feeder')
        if not feederStrings:
            print "No feeders provided: %s" % feederStrings

        for feederName in splitByComma(feederStrings):
            if feederName in self.plugins['feeder']:
                self.runPlugin('feeder', feederName)
Exemplo n.º 3
0
    def runFeederPlugins(self):
        print 'Start running feeders......'
        feederStrings = self.configure.getOption('app_main', 'feeder')
        if not feederStrings:
            print "No feeders provided: %s" % feederStrings

        for feederName in splitByComma(feederStrings):
            if feederName in self.plugins['feeder']:
                self.runPlugin('feeder', feederName)
Exemplo n.º 4
0
 def setupDispatchers(self, configure):
     ''' setup dispatchers '''
     print "Start setting up dispatcher......"
     for groupName in PluginManager.groupNames:
         for pluginName in self.plugins[groupName]:
             receiverStrings = configure.getOption(pluginName + '_mapping',
                                                   'receiver')
             if receiverStrings:
                 self.__setup_dispatcher(groupName, pluginName,
                                         splitByComma(receiverStrings))