Пример #1
0
 def getBotEventCoordinator(self, ItBot):
     moduleString = self.__botEventCoordinatorClassDict['class']
     if (moduleString):
         BotEventCoordinator = self.__getClassFromModuleString(moduleString)
         return BotEventCoordinator.factory(self, ItBot,
                                            BotEventCoordinator)
     else:
         return DefaultBotEventCoordinator.factory(
             self, ItBot, DefaultBotEventCoordinator)
Пример #2
0
	def getBotEventCoordinator(self, ItBot):
		moduleString = self.__botEventCoordinatorClassDict['class']
		if (moduleString):
			BotEventCoordinator = self.__getClassFromModuleString(moduleString)
			return BotEventCoordinator.factory(self, ItBot, BotEventCoordinator)
		else:
			return DefaultBotEventCoordinator.factory(
				self,
				ItBot,
				DefaultBotEventCoordinator
			)