A "stanza" object class. Contains methods that are common
for presences, iqs and messages.
|
|
__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. |
source code
|
|
|
|
getTo(self)
Return value of the 'to' attribute. |
source code
|
|
|
|
getFrom(self)
Return value of the 'from' attribute. |
source code
|
|
|
|
getTimestamp(self)
Return the timestamp in the 'yyyymmddThhmmss' format. |
source code
|
|
|
|
getID(self)
Return the value of the 'id' attribute. |
source code
|
|
|
|
setTo(self,
val)
Set the value of the 'to' attribute. |
source code
|
|
|
|
getType(self)
Return the value of the 'type' attribute. |
source code
|
|
|
|
setFrom(self,
val)
Set the value of the 'from' attribute. |
source code
|
|
|
|
setType(self,
val)
Set the value of the 'type' attribute. |
source code
|
|
|
|
setID(self,
val)
Set the value of the 'id' attribute. |
source code
|
|
|
|
getError(self)
Return the error-condition (if present) or the textual description of
the error (otherwise). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
getProperties(self)
Return the list of namespaces to which belongs the direct childs of
element |
source code
|
|
|
|
|
|
Inherited from simplexml.Node:
__delitem__,
__getattr__,
__getitem__,
__str__,
addChild,
addData,
clearData,
delAttr,
delChild,
getAttr,
getAttrs,
getCDATA,
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__
|