#NEWLINE# def view( name , * args , **kwargs ) : #NEWLINE# #INDENT# plugin = pm . view_plugin_with_name ( view ) #NEWLINE# if ( plugin and plugin . view_class ) : #NEWLINE# #INDENT# view = plugin . view_class ( * args , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'Invalid view name' ) #NEWLINE# #UNINDENT# return view