Ticket #1362: add_request.diff

File add_request.diff, 0.9 kB (added by chrisz, 1 year ago)

Add request to the stdvars (this patch is for the trunk)

  • turbogears/view/base.py

    old new  
    289289        input values from a form 
    290290    errors 
    291291        validation errors 
     292    request 
     293        the cherrypy request 
    292294    config 
    293295        the cherrypy config get function 
    294296 
     
    312314        url = turbogears.url, identity=identity.current, config=config.get, 
    313315        locale = get_locale(), 
    314316        errors = getattr(cherrypy.request, "validation_errors", {}), 
    315         inputs = getattr(cherrypy.request, "input_values", {})) 
     317        inputs = getattr(cherrypy.request, "input_values", {}), 
     318        request = cherrypy.request) 
    316319    for provider in variable_providers + variableProviders: 
    317320        provider(vars) 
    318321    deprecated_vars = DeprecatedDictWrapper(vars)