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
def toElement(self): element = Request.toElement(self) element.addRawXml(self.payload) return element
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
def toElement(self): element = Request.toElement(self) element.addChild(self.jingle.toElement()) return element
def __init__(self, sender=None, recipient=None, jingle=None): Request.__init__(self, recipient, sender, self.stanzaType) self.jingle = jingle