|
|
__init__(self,
name=None,
to=None,
typ=None,
frm=None,
attrs={},
payload=[],
timestamp=None,
xmlns=None,
node=None)
Constructor, name is the name of the stanza
i.e. 'message' or 'presence'or 'iq' |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getError(self)
Return the error-condition (if present) or the textual description
of the error (otherwise) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
setError(self,
error,
code=None)
Set the error code. Obsolete. Use error-conditions instead |
source code
|
|
|
|
|
|
|
|
|
|
|
|
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__
|