#NEWLINE# def CreateEquationlist( self , dim ) : #NEWLINE# #INDENT# htmlToReturn = '' #NEWLINE# if ( dim == 2 ) : #NEWLINE# #INDENT# module = pyeq2 . Models_2D #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# module = pyeq2 . Models_3D #NEWLINE# #UNINDENT# htmlToReturn += '<table border=1>' #NEWLINE# for submodule in inspect . getmembers ( module ) : #NEWLINE# #INDENT# if inspect . ismodule ( submodule [ 1 ] ) : #NEWLINE# #INDENT# for equationClass in inspect . getmembers ( submodule [ 1 ] ) : #NEWLINE# #INDENT# if inspect . isclass ( equationClass [ 1 ] ) : #NEWLINE# #INDENT# for extendedVersionName in [ 'Default' , 'Offset' ] : #NEWLINE# #INDENT# if ( ( ( - 1 ) != extendedVersionName . find ( 'Offset' ) ) and ( equationClass [ 1 ] . autoGenerateOffsetForm == False ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# equation = equationClass [ 1 ] ( 'SSQABS' , extendedVersionName ) #NEWLINE# htmlToReturn += '<tr>' #NEWLINE# htmlToReturn += ( ( ( ( '<td nowrap>' + str ( dim ) ) + 'D ' ) + submodule [ 0 ] ) + '</td>' ) #NEWLINE# htmlToReturn += ( ( '<td nowrap>' + equation . GetDisplayName ( ) ) + '</td>' ) #NEWLINE# htmlToReturn += ( ( '<td nowrap>' + equation . GetDisplayHTML ( ) ) + '</td>' ) #NEWLINE# htmlToReturn += '</tr>' #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# htmlToReturn += '</table>' #NEWLINE# return htmlToReturn