#NEWLINE# def get_html( self , request ) : #NEWLINE# #INDENT# template = request . cache . template #NEWLINE# if ( not template ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# action = request . urlargs . get ( 'action' ) #NEWLINE# context = dict ( ( self . action_config . get ( action ) or ( ) ) ) #NEWLINE# model = ( context . get ( 'model' ) or self . model ) #NEWLINE# target = model . get_target ( request , path = context . get ( 'path' ) , get = context . get ( 'getdata' ) ) #NEWLINE# if ( 'form' in context ) : #NEWLINE# #INDENT# form = get_form_layout ( context [ 'form' ] ) #NEWLINE# if ( not form ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# html = form ( request ) . as_form ( action = target ) #NEWLINE# context [ 'html_main' ] = html . render ( request ) #NEWLINE# #UNINDENT# self . action_context ( request , context , target ) #NEWLINE# rnd = request . app . template_engine ( ) #NEWLINE# return rnd ( template , context )