def toElement(self, legacyDelay=False):
    '\n        Render into a domish Element.\n\n        @param legacyDelay: If C{True} send the delayed delivery information\n        in legacy format.\n        '
    element = xmppim.Message.toElement(self)
    if self.delay:
        element.addChild(self.delay.toElement(legacy=legacyDelay))
    return element
Render into a domish Element.

@param legacyDelay: If C{True} send the delayed delivery information
in legacy format.
def toElement(self, legacyDelay=False):
    '\n        Render into a domish Element.\n\n        @param legacyDelay: If C{True} send the delayed delivery information\n        in legacy format.\n        '
    element = xmppim.Message.toElement(self)
    if self.delay:
        element.addChild(self.delay.toElement(legacy=legacyDelay))
    return element