#NEWLINE# def getlist( self , name ) : #NEWLINE# #INDENT# '\n        Retrieve given property from class/instance, ensuring it is a list.\n        Also determine whether the list contains simple text/numeric values or\n        nested dictionaries (a "complex" list)\n        ' #NEWLINE# value = self . getvalue ( name ) #NEWLINE# complex = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# def str_value( val ) : #NEWLINE# #INDENT# if isinstance ( val , dict ) : #NEWLINE# #INDENT# complex [ 'complex' ] = True #NEWLINE# return val #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return str ( val ) #NEWLINE# #UNINDENT# #UNINDENT# if ( value is None ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = [ str_value ( val ) for val in as_list ( value ) ] #NEWLINE# #UNINDENT# return ( value , bool ( complex ) )