Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Package jabber :: Module delay :: Class Delay |
|
object
--+ |StanzaPayloadObject
--+ | Delay
Delayed delivery tag. Represents 'jabber:x:delay' (JEP-0091) element of a Jabber stanza. :Ivariables: - `delay_from`: the "from" value of the delay element - `reason`: the "reason" (content) of the delay element - `timestamp`: the UTC timestamp as naive datetime object
Method Summary | |
---|---|
Initialize the Delay object. | |
__cmp__(self,
other)
| |
__str__(self)
| |
Complete the XML node with `self` content. | |
Initialize Delay object from an XML node. | |
Get the timestamp as a local time. | |
Get the timestamp as a UTC. | |
Inherited from StanzaPayloadObject | |
Get the XML representation of `self`. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
str |
xml_element_name = 'x'
|
str |
xml_element_namespace = 'jabber:x:delay'
|
Method Details |
---|
__init__(self,
node_or_datetime,
delay_from=None,
reason=None,
utc=True)
|
complete_xml_element(self, xmlnode, _unused)Complete the XML node with `self` content. Should be overriden in classes derived from `StanzaPayloadObject`. :Parameters: - `xmlnode`: XML node with the element being built. It has already right name and namespace, but no attributes or content. - `_unused`: document to which the element belongs. :Types: - `xmlnode`: `libxml2.xmlNode` - `_unused`: `libxml2.xmlDoc` |
from_xml(self, xmlnode)Initialize Delay object from an XML node. :Parameters: - `xmlnode`: the jabber:x:delay XML element. :Types: - `xmlnode`: `libxml2.xmlNode` |
get_datetime_local(self)Get the timestamp as a local time. :return: the timestamp of the delay element represented in the local timezone. :returntype: `datetime.datetime` |
get_datetime_utc(self)Get the timestamp as a UTC. :return: the timestamp of the delay element represented in UTC. :returntype: `datetime.datetime` |
Class Variable Details |
---|
xml_element_name
|
xml_element_namespace
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:36:58 2006 | http://epydoc.sf.net |