示例#1
0
    def sendMessage(self):
        config = ConfigHolder.configFileToDict(self.options.configFile)
        configHolder = ConfigHolder(self.options.__dict__, config)

        if self.options.imageid:
            ImageIdPublisher(self.msg_message, self.options.imageid, configHolder).publish()
        else:
            SingleMessagePublisher(self.msg_message, configHolder).publish()
示例#2
0
 def _loadConfiguration(self):
     return ConfigHolder.configFileToDict(self._findConfigFile())