Changeset 5124
- Timestamp:
- 08/10/08 16:11:58 (5 months ago)
- Files:
-
- trunk/tg/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tg/__init__.py
r4999 r5124 47 47 advanced users, but we know that they want things set up to just work too. 48 48 49 Sensible defaults actuallyencourage code re-use within TurboGears because50 they make it possible for a group of TurboGears components to share assumptions51 a bout how things will work.49 Sensible defaults encourage code re-use within TurboGears because 50 they make it possible for a group of TurboGears components to share 51 assumptions about how things will work. 52 52 """ 53 53 from tg.controllers import TGController, redirect, url, use_wsgi_app … … 58 58 59 59 from 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 60 from pylons import app_globals, config, request, response, tmpl_context, session 64 61 65 from warnings import warn 62 TGApp = PylonsApp 66 63 67 64 __all__ = [ 68 65 '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' 71 68 ]