#NEWLINE# def _render_context( tmpl , callable_ , context , * args , **kwargs ) : #NEWLINE# #INDENT# import mako.template as template #NEWLINE# if ( not isinstance ( tmpl , template . DefTemplate ) ) : #NEWLINE# #INDENT# ( inherit , lclcontext ) = _populate_self_namespace ( context , tmpl ) #NEWLINE# _exec_template ( inherit , lclcontext , args = args , kwargs = kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( inherit , lclcontext ) = _populate_self_namespace ( context , tmpl . parent ) #NEWLINE# _exec_template ( callable_ , context , args = args , kwargs = kwargs )