|
|
__init__(self,
typ=None,
queryNS=None,
attrs={},
to=None,
frm=None,
payload=[],
xmlns='jabber:client',
node=None)
You can specify type, query namespace any additional attributes,
recipient of the iq, sender of the iq, any additional payload (f.e.
jabber:x:data node) and namespace in one go. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setQuery(self,
name=None)
Change the name of the query node, creating it if needed. Keep the
existing name if none is given (use 'query' if it's a creation).
Return the query node. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
buildReply(self,
typ)
Build and return another Iq object of specified type. The to, from and
query child node of new Iq are pre-set as reply to this Iq. |
source code
|
|
|
Inherited from Protocol:
__setitem__,
getError,
getErrorCode,
getErrorMsg,
getFrom,
getID,
getProperties,
getStatusConditions,
getTimestamp,
getTimestamp2,
getTo,
getType,
setError,
setFrom,
setID,
setTimestamp,
setTo,
setType
Inherited from simplexml.Node:
__contains__,
__delitem__,
__getattr__,
__getitem__,
__str__,
addChild,
addData,
clearData,
delAttr,
delChild,
getAttr,
getAttrs,
getChildren,
getData,
getName,
getNamespace,
getParent,
getPayload,
getTag,
getTagAttr,
getTagData,
getTags,
has_attr,
iterTags,
lookup_nsp,
setAttr,
setData,
setName,
setNamespace,
setParent,
setPayload,
setTag,
setTagAttr,
setTagData
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|