#NEWLINE# def complete_xml_element( self , xmlnode , _unused ) : #NEWLINE# #INDENT# 'Complete the XML node with `self` content.\n\n        Should be overriden in classes derived from `StanzaPayloadObject`.\n\n        :Parameters:\n            - `xmlnode`: XML node with the element being built. It has already\n              right name and namespace, but no attributes or content.\n            - `_unused`: document to which the element belongs.\n        :Types:\n            - `xmlnode`: `libxml2.xmlNode`\n            - `_unused`: `libxml2.xmlDoc`' #NEWLINE# tm = self . timestamp . strftime ( '%Y%m%dT%H:%M:%S' ) #NEWLINE# xmlnode . setProp ( 'stamp' , tm ) #NEWLINE# if self . delay_from : #NEWLINE# #INDENT# xmlnode . setProp ( 'from' , self . delay_from . as_utf8 ( ) ) #NEWLINE# #UNINDENT# if self . reason : #NEWLINE# #INDENT# xmlnode . setContent ( to_utf8 ( tm . reason ) )