コード例 #1
0
 def __init__(self, *a, **kw):
     self.responses = {'data_success': 'Finished', 'greeting': 'Hello there'}
     self.switchboard = kw.pop('switchboard')
     smtp.SMTPFactory.__init__(self, *a, **kw)
     InputChannel.__init__(self, switchboard=self.switchboard,
                           name=self.CHANNEL,
                           unique_channel=False)
コード例 #2
0
 def init(self, switchboard=None):
     InputChannel.__init__(self, switchboard=switchboard, name=self.CHANNEL)
コード例 #3
0
 def __init__(self, *a, **kw):
     self.responses = {"data_success": "Finished", "greeting": "Hello there"}
     self.switchboard = kw.pop("switchboard")
     smtp.SMTPFactory.__init__(self, *a, **kw)
     InputChannel.__init__(self, switchboard=self.switchboard, name=self.CHANNEL, unique_channel=False)