def plugin(self, owner):
        owner.RegisterHandler('iq',self._DiscoveryHandler,typ='get',ns=NS_DISCO_INFO)
        owner.RegisterHandler('iq',self._DiscoveryHandler,typ='get',ns=NS_DISCO_ITEMS)
Registers it's own iq handlers in your application dispatcher instance.
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/browser.py/Browser.plugin