#NEWLINE# def get_fieldset( self , legend = None , **kwargs ) : #NEWLINE# #INDENT# FieldSet = get_class ( self . dtd , 'FieldSet' , ( FormMixin , self . dtd . Fieldset ) ) #NEWLINE# fs = FieldSet ( ** kwargs ) #NEWLINE# fs . _init ( self . dtd ) #NEWLINE# if legend : #NEWLINE# #INDENT# lg = self . dtd . Legend ( ) #NEWLINE# lg . append ( check_object ( legend ) ) #NEWLINE# fs . append ( lg ) #NEWLINE# #UNINDENT# return fs