def handshakeHandler(self,disp,stanza):
        """ Handler for registering in dispatcher for accepting transport authentication. """
        if stanza.getName()=='handshake': self.handshake=1
        else: self.handshake=-1
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/auth.py/NonSASL.handshakeHandler/original