예제 #1
0
파일: client.py 프로젝트: softkrates/wokkel
    def associateWithStream(self, xs):
        xmlstream.ConnectAuthenticator.associateWithStream(self, xs)

        tlsInit = xmlstream.TLSInitiatingInitializer(xs)
        xs.initializers = [client.CheckVersionInitializer(xs),
                           tlsInit,
                           CheckAuthInitializer(xs)]
예제 #2
0
 def setUp(self):
     a = xmlstream.Authenticator()
     xs = xmlstream.XmlStream(a)
     self.init = client.CheckVersionInitializer(xs)