close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
- Timestamp:
-
Jul 9, 2008, 3:09:11 PM (16 years ago)
- Author:
-
cmlenz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v3
|
v4
|
|
51 | 51 | See ConfigOptions for information on the configuration options that are available by default, although you can of course always add your own. |
52 | 52 | |
| 53 | == Application Context Variables == |
| 54 | |
| 55 | It should very rarely be necessary to access any of these variables from application-level code, but here's a list of them anyway. |
| 56 | |
| 57 | `context`:: The Genshi `Context` object that contains the data to pass to the template |
| 58 | `forms`:: A list of `Form` objects created while processing a request (used for form filling) |
| 59 | `locale`:: The Babel `Locale` object |
| 60 | `request`:: The `Request` object representing the current HTTP request |
| 61 | `response`:: The `Response` object representing the current HTTP response |
| 62 | `template`:: The Genshi `Template` object that should be used to render the response |
| 63 | `serializer`:: The Genshi `Serializer` instance to use for rendering |
| 64 | `timezone`:: A `tzinfo` or `pytz.timezone` instance |
| 65 | `translations`:: A Babel `Translations` instance (which is a subclass `GNUTranslations` from the standard library) |
| 66 | |
53 | 67 | == API Documentation == |
54 | 68 | |