Home | Trees | Index | Help |
|
---|
|
object
--+ |StanzaPayloadObject
--+ | Delay
Delayed delivery tag.
Represents 'jabber:x:delay' (JEP-0091) element of a Jabber stanza.
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. | |
datetime.datetime |
Get the timestamp as a local time. |
datetime.datetime |
Get the timestamp as a UTC. |
Inherited from StanzaPayloadObject | |
libxml2.xmlNode or libxml2.xmlDoc |
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 |
Instance Variable Summary | |
---|---|
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 |
Class Variable Summary | |
---|---|
unicode |
xml_element_name : name for the XML element provided by the class. |
unicode |
xml_element_namespace : namespace URI for the XML element provided
by the class. |
Method Details |
---|
__init__(self,
node_or_datetime,
delay_from=None,
reason=None,
utc=True)
Initialize the Delay object. |
complete_xml_element(self, xmlnode, _unused)Complete the XML node with Should be overriden in classes derived from
|
from_xml(self, xmlnode)Initialize Delay object from an XML node.
|
get_datetime_local(self)Get the timestamp as a local time.
|
get_datetime_utc(self)Get the timestamp as a UTC.
|
Instance Variable Details |
---|
delay_fromthe "from" value of the delay element |
reasonthe "reason" (content) of the delay element |
timestampthe UTC timestamp as naive datetime object |
Class Variable Details |
---|
xml_element_namename for the XML element provided by the class.
|
xml_element_namespacenamespace URI for the XML element provided by the class.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:42 2005 | http://epydoc.sf.net |