def render_view_to_response(context, request, name='', secure=True):
 registry = getattr(request, 'registry', None)
 if (registry is None):
  registry = get_current_registry()
 context_iface = providedBy(context)
 request_iface = providedBy(request)
 response = _call_view(registry, request, context, context_iface, name, secure=secure, request_iface=request_iface)
 return response

def render_view_to_response ( context , request , name = '' , secure = True ) : registry = getattr ( request , 'registry' , None ) if ( registry is None ) : registry = get_current_registry ( ) context_iface = providedBy ( context ) request_iface = providedBy ( request ) response = _call_view ( registry , request , context , context_iface , name , secure = secure , request_iface = request_iface ) return response
call the :term:view callable configured with a :term:view configuration that matches the :term:view name name registered against the specified context and request and return a :term:response object .