Changeset 2912

Show
Ignore:
Timestamp:
04/22/07 06:57:12 (1 year ago)
Author:
alberto
Message:

Applied #1362 by Christoph

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/CHANGELOG.txt

    r2909 r2912  
    77*Changes* 
    88 
     9* ``cherrypy.request`` is now available at the variables sent to every template. 
     10  #1362 by Christoph Zwerschke. 
    911* SA transaction object is now stored at ``cherrypy.request.sa_transaction`` so it 
    1012  can be accessed from the controllers. Patch at #1359 by Janzert. 
  • branches/1.0/turbogears/view/base.py

    r2795 r2912  
    295295    errors 
    296296        validation errors 
     297    request 
     298        the cherrypy request 
    297299    config 
    298300        the cherrypy config get function 
     
    318320        locale = get_locale(), 
    319321        errors = getattr(cherrypy.request, "validation_errors", {}), 
    320         inputs = getattr(cherrypy.request, "input_values", {})) 
     322        inputs = getattr(cherrypy.request, "input_values", {}), 
     323        request = cherrypy.request) 
    321324    for provider in variable_providers + variableProviders: 
    322325        provider(vars)