コード例 #1
0
ファイル: register.py プロジェクト: lehrblogger/SleekXMPP
    def post_init(self):
        base_plugin.post_init(self)
        if 'xep_0004' in self.xmpp.plugin:
            register_stanza_plugin(Register, self.xmpp['xep_0004'].stanza.Form)

        if 'xep_0066' in self.xmpp.plugin:
            register_stanza_plugin(Register, self.xmpp['xep_0066'].stanza.OOB)
コード例 #2
0
    def post_init(self):
        """Handle cross-plugin dependencies."""
        base_plugin.post_init(self)
        self.disco = self.xmpp['xep_0030']
        self.static = StaticExtendedDisco(self.disco.static)

        self.disco.set_extended_info = self.set_extended_info
        self.disco.add_extended_info = self.add_extended_info
        self.disco.del_extended_info = self.del_extended_info

        for op in self._disco_ops:
            self.disco._add_disco_op(op, getattr(self.static, op))
コード例 #3
0
    def post_init(self):
        """Handle cross-plugin dependencies."""
        base_plugin.post_init(self)
        self.disco = self.xmpp['xep_0030']
        self.static = StaticExtendedDisco(self.disco.static)

        self.disco.set_extended_info = self.set_extended_info
        self.disco.add_extended_info = self.add_extended_info
        self.disco.del_extended_info = self.del_extended_info

        for op in self._disco_ops:
            self.disco._add_disco_op(op, getattr(self.static, op))
コード例 #4
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp["xep_0050"].add_command(None, "shutdown", "Shutdown", self._handle_shutdown_command)
コード例 #5
0
 def post_init(self):
     """
     Handle cross-plugin dependencies.
     """
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
コード例 #6
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp["xep_0030"].add_feature(Geoloc.namespace)
コード例 #7
0
ファイル: adhoc.py プロジェクト: vijayp/SleekXMPP
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
コード例 #8
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(stanza.Attention.namespace)
コード例 #9
0
ファイル: invite.py プロジェクト: GuruMeditation/SleekXMPP
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
コード例 #10
0
 def post_init(self):
     base_plugin.post_init(self)
コード例 #11
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
コード例 #12
0
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Geoloc.namespace)
コード例 #13
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None, 'shutdown', 'Shutdown',
                                       self._handle_shutdown_command)
コード例 #14
0
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     if 'xep_0059' in self.xmpp.plugin:
         register_stanza_plugin(DiscoItems,
                                self.xmpp['xep_0059'].stanza.Set)
コード例 #15
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Command.namespace)
コード例 #16
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
コード例 #17
0
ファイル: disco.py プロジェクト: Lujeni/old-projects
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     if 'xep_0059' in self.xmpp.plugin:
         register_stanza_plugin(DiscoItems,
                                self.xmpp['xep_0059'].stanza.Set)
コード例 #18
0
ファイル: chat_states.py プロジェクト: vijayp/SleekXMPP
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature(ChatState.namespace)
コード例 #19
0
ファイル: redis_queue.py プロジェクト: h4ck3rm1k3/Kestrel
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
コード例 #20
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature("jabber:iq:register")
コード例 #21
0
ファイル: redis_queue.py プロジェクト: pombredanne/Kestrel
 def post_init(self):
     base_plugin.post_init(self)
     self.process()
コード例 #22
0
 def post_init(self):
     base_plugin.post_init(self)
コード例 #23
0
ファイル: ping.py プロジェクト: detower/SleekXMPP
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Ping.namespace)
コード例 #24
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Invite.namespace)
コード例 #25
0
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp['xep_0050'].add_command(None,
                                       'shutdown',
                                       'Shutdown',
                                       self._handle_shutdown_command)
コード例 #26
0
ファイル: time.py プロジェクト: GuruMeditation/SleekXMPP
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
コード例 #27
0
 def post_init(self):
     """Handle cross-plugin interactions."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature('urn:xmpp:time')
コード例 #28
0
ファイル: xep_0004.py プロジェクト: huangdehui2013/Kestrel
 def post_init(self):
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
コード例 #29
0
ファイル: oob.py プロジェクト: GuruMeditation/SleekXMPP
 def post_init(self):
     """Handle cross-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(stanza.OOBTransfer.namespace)
     self.xmpp['xep_0030'].add_feature(stanza.OOB.namespace)
コード例 #30
0
ファイル: version.py プロジェクト: artss/SleekXMPP-gevent
 def post_init(self):
     """
     Handle cross-plugin dependencies.
     """
     base_plugin.post_init(self)
     self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
コード例 #31
0
ファイル: rsm.py プロジェクト: GuruMeditation/SleekXMPP
 def post_init(self):
     """Handle inter-plugin dependencies."""
     base_plugin.post_init(self)
     self.xmpp['xep_0030'].add_feature(Set.namespace)