#NEWLINE# def addDocBaseClass( self , class_ , attrs ) : #NEWLINE# #INDENT# if ( not attrs . has_key ( 'class_' ) ) : #NEWLINE# #INDENT# attrs [ 'class_' ] = [ class_ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isinstance ( attrs [ 'class_' ] , ( list , tuple ) ) ) : #NEWLINE# #INDENT# attrs [ 'class_' ] = ( [ class_ ] + [ attrs [ 'class_' ] ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# attrs [ 'class_' ] = [ self , attrs [ 'class_' ] ] #NEWLINE# #UNINDENT# #UNINDENT# return attrs