コード例 #1
0
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % name)
     client.DeferredClientFactory.__init__(self, JID(self.jid_str),
                                           self.password)
     bot = JabberBot()
     self.addHandler(bot)
     bot.setHandlerParent(self)
コード例 #2
0
ファイル: http.py プロジェクト: rsnyman/ibid
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     root = Plugin(name)
     root.putChild('', Index(name))
     root.putChild('message', Message(name))
     root.putChild('static', static.File(locate_resource('ibid', 'static')))
     root.putChild('RPC2', XMLRPC())
     root.putChild('SOAP', SOAP())
     self.site = server.Site(root)
コード例 #3
0
ファイル: http.py プロジェクト: B-Rich/ibid-1
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     root = Plugin(name)
     root.putChild('', Index(name))
     root.putChild('message', Message(name))
     root.putChild('static', static.File(locate_resource('ibid', 'static')))
     root.putChild('RPC2', XMLRPC())
     root.putChild('SOAP', SOAP())
     self.site = server.Site(root)
コード例 #4
0
ファイル: silc.py プロジェクト: shoosen/ibid
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % self.name)
     pub = join(ibid.options['base'], self.public_key)
     prv = join(ibid.options['base'], self.private_key)
     if not exists(pub) and not exists(prv):
         keys = create_key_pair(pub, prv, passphrase='')
     else:
         keys = load_key_pair(pub, prv, passphrase='')
     self.client = SilcBot(keys, self.nick, self.nick, self.realname, self)
コード例 #5
0
ファイル: silc.py プロジェクト: B-Rich/ibid-1
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % self.name)
     pub = join(ibid.options['base'], self.public_key)
     prv = join(ibid.options['base'], self.private_key)
     if not exists(pub) and not exists(prv):
         keys = create_key_pair(pub, prv, passphrase='')
     else:
         keys = load_key_pair(pub, prv, passphrase='')
     self.client = SilcBot(keys, self.nick, self.nick, self.realname, self)
コード例 #6
0
ファイル: smtp.py プロジェクト: B-Rich/ibid-1
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % name)
     self.delivery = IbidDelivery(self)
コード例 #7
0
ファイル: smtp.py プロジェクト: shoosen/ibid
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % name)
     self.delivery = IbidDelivery(self)
コード例 #8
0
ファイル: irc.py プロジェクト: B-Rich/ibid-1
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self._auth = {}
     self._auth_ticket = 0
     self._auth_ticket_lock = Lock()
     self.log = logging.getLogger('source.%s' % self.name)
コード例 #9
0
ファイル: irc.py プロジェクト: rsnyman/ibid
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self._auth = {}
     self._auth_ticket = 0
     self._auth_ticket_lock = Lock()
     self.log = logging.getLogger('source.%s' % self.name)
コード例 #10
0
ファイル: dc.py プロジェクト: vhata/ibid
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % self.name)
     self._auth = {}
コード例 #11
0
ファイル: dc.py プロジェクト: B-Rich/ibid-1
 def __init__(self, name):
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % self.name)
     self._auth = {}
コード例 #12
0
ファイル: manhole.py プロジェクト: vhata/ibid
 def __init__(self, name):
     ShellFactory.__init__(self)
     IbidSourceFactory.__init__(self, name)
     self.name = name
コード例 #13
0
ファイル: telnet.py プロジェクト: vhata/ibid
 def __init__(self, name, *args, **kwargs):
     #protocol.ServerFactory.__init__(self, *args, **kwargs)
     IbidSourceFactory.__init__(self, name)
     self.log = logging.getLogger('source.%s' % name)