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