| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 11 | class BaseController(TGController): |
||
| 12 | """ |
||
| 13 | Base class for the controllers in the application. |
||
| 14 | |||
| 15 | Your web application should have one of these. The root of |
||
| 16 | your application is used to compute URLs used by your app. |
||
| 17 | |||
| 18 | """ |
||
| 19 | |||
| 20 | def __call__(self, environ, context): |
||
| 21 | """Invoke the Controller""" |
||
| 22 | # TGController.__call__ dispatches to the Controller method |
||
| 23 | # the request is routed to. |
||
| 24 | |||
| 25 | tmpl_context.identity = request.identity |
||
| 26 | |||
| 27 | return TGController.__call__(self, environ, context) |
||
| 28 |