def toElement(self):
    '\n        Returns a L{domish.Element} representing the history options.\n        '
    element = domish.Element((NS_MUC, 'history'))
    for key in self.attributes:
        value = getattr(self, key, None)
        if (value is not None):
            if (key == 'since'):
                stamp = value.astimezone(tzutc())
                element[key] = stamp.strftime('%Y-%m-%dT%H:%M:%SZ')
            else:
                element[key.lower()] = str(value)
    return element
Returns a L{domish.Element} representing the history options.
def toElement(self):
    '\n        \n        '
    element = domish.Element((NS_MUC, 'history'))
    for key in self.attributes:
        value = getattr(self, key, None)
        if (value is not None):
            if (key == 'since'):
                stamp = value.astimezone(tzutc())
                element[key] = stamp.strftime('%Y-%m-%dT%H:%M:%SZ')
            else:
                element[key.lower()] = str(value)
    return element