Пример #1
0
 def onDocumentStart(self, rootElement):
     XmlStream.onDocumentStart(self, rootElement)
     #logging.debug('onDocumentStart')
     #m = message.Message('msg')
     #m.set('from', 'me')
     #self.send_message(m)
     self.handler.client_connected(self)
Пример #2
0
 def onDocumentStart(self, rootElement):
     XmlStream.onDocumentStart(self, rootElement)
     XmlStream.send(self, '<?xml version="1.0" encoding="utf-8"?><root>')
     # logging.debug('Document start received')
     manager.client_connected(self)
Пример #3
0
 def onDocumentStart(self, rootElement):
     XmlStream.onDocumentStart(self, rootElement)
     self.streamStarted(rootElement)
     self.addObserver('/message[@xmlns="%s"]' % self.NAMESPACE, self.handle_message)