#NEWLINE# def page_models_from_string( string ) : #NEWLINE# #INDENT# page_models = [ ] #NEWLINE# for sub_string in string . split ( ',' ) : #NEWLINE# #INDENT# page_model = resolve_model_string ( sub_string ) #NEWLINE# if ( not issubclass ( page_models , Page ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Model is not a page' ) #NEWLINE# #UNINDENT# page_models . append ( page_model ) #NEWLINE# #UNINDENT# return tuple ( page_models )