#NEWLINE# def _attrs( self , **kwargs ) : #NEWLINE# #INDENT# ' Returns a string of HTML element attributes.\n            Use "css" for the CSS classname (since "class" is a reserved word).\n        ' #NEWLINE# a = [ ] #NEWLINE# if ( 'id' in kwargs ) : #NEWLINE# #INDENT# a . append ( ( 'id="%s"' % kwargs . pop ( 'id' ) ) ) #NEWLINE# #UNINDENT# if ( 'name' in kwargs ) : #NEWLINE# #INDENT# a . append ( ( 'name="%s"' % kwargs . pop ( 'name' ) ) ) #NEWLINE# #UNINDENT# if ( 'css' in kwargs ) : #NEWLINE# #INDENT# a . append ( ( 'class="%s"' % kwargs . pop ( 'css' ) ) ) #NEWLINE# #UNINDENT# for ( k , v ) in kwargs . items ( ) : #NEWLINE# #INDENT# a . append ( ( '%s="%s"' % ( k , v ) ) ) #NEWLINE# #UNINDENT# return ( ' ' + ' ' . join ( a ) ) . rstrip ( )