Changeset 5124

Show
Ignore:
Timestamp:
08/10/08 16:11:58 (5 months ago)
Author:
mramm
Message:

Updates to the tg namespace to include aliases of commonly used pylons bits including request, response, config, etc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/__init__.py

    r4999 r5124  
    4747advanced users, but we know that they want things set up to just work too. 
    4848 
    49 Sensible defaults actually encourage code re-use within TurboGears because 
    50 they make it possible for a group of TurboGears components to share assumptions 
    51 about how things will work. 
     49Sensible defaults encourage code re-use within TurboGears because 
     50they make it possible for a group of TurboGears components to share  
     51assumptions about how things will work. 
    5252""" 
    5353from tg.controllers import TGController, redirect, url, use_wsgi_app 
     
    5858 
    5959from pylons.wsgiapp import PylonsApp 
    60 from pylons import tmpl_context  
    61 from pylons import g as app_globals 
    62 from pylons import request 
    63 from pylons import session 
     60from pylons import app_globals, config, request, response, tmpl_context, session 
    6461 
    65 from warnings import warn 
     62TGApp = PylonsApp 
    6663 
    6764__all__ = [ 
    6865    'expose', 'validate', 'TGController', 'tmpl_context', 'app_globals', 
    69     'overide_template', 'request', 'session','TurboGearsApplication',  
    70     'use_wsgi_app' 
     66    'overide_template', 'request', 'response', 'session','TurboGearsApplication',  
     67    'use_wsgi_app', 'TGApp' 
    7168]