Changeset 4697
- Timestamp:
- 06/10/08 15:08:09 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/lib/base.py_tmpl
r4587 r4697 18 18 class Controller(object): 19 19 """Base class for a web application's controller. 20 20 21 21 Currently, this provides positional parameters functionality 22 22 via a standard default method. 23 23 """ 24 24 25 25 class BaseController(TGController): 26 26 """Base class for the root of a web application. 27 27 28 28 Your web application should have one of these. The root of 29 29 your application is used to compute URLs used by your app. 30 30 """ 31 31 32 32 def __call__(self, environ, start_response): 33 33 """Invoke the Controller""" … … 48 48 model.DBSession.remove() 49 49 {{if identity == "sqlalchemy"}} 50 tmpl_context.identity = request.environ.get('repoze.who.identity')50 tmpl_context.identity = request.environ.get('repoze.who.identity') 51 51 {{endif}} 52 52 {{else}}