Beispiel #1
0
 def toElement(self):
     element = Request.toElement(self)
     query = element.addElement((NS_ROSTER, 'query'))
     if self.version is not None:
         query['ver'] = self.version
     if self.item:
         query.addChild(self.item.toElement(rosterSet=self.rosterSet))
     return element
Beispiel #2
0
 def toElement(self):
     element = Request.toElement(self)
     query = element.addElement((NS_ROSTER, 'query'))
     if self.version is not None:
         query['ver'] = self.version
     if self.item:
         query.addChild(self.item.toElement(rosterSet=self.rosterSet))
     return element
Beispiel #3
0
 def toElement(self):
     element = Request.toElement(self)
     element.addRawXml(self.payload)
     return element
Beispiel #4
0
 def __init__(self, sender=None, recipient=None, payload=None):
     if not payload:
         raise ValueError('conference info payload cannot be empty')
     Request.__init__(self, recipient, sender, self.stanzaType)
     self.payload = payload
Beispiel #5
0
 def toElement(self):
     element = Request.toElement(self)
     element.addChild(self.jingle.toElement())
     return element
Beispiel #6
0
 def __init__(self, sender=None, recipient=None, jingle=None):
     Request.__init__(self, recipient, sender, self.stanzaType)
     self.jingle = jingle