aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/template.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug #685: only provide CSRF token if it existsElrond2011-12-031-1/+3
| | | | | | | | | | | | | This was suggested by Nathan Yergler in the bug logs. Just implementing it. - Let render_csrf_form_token return None, if the CSRF_TOKEN is not available in the environ, because the process_request part of the meddleware has not yet run. - In render_template: If the returned value from above is None, then do not add the csrf_token to the templates context.
* Rename MediaGoblin middleware to meddleware to avoid confusion w/ wsgi ↵Christopher Allan Webber2011-11-251-1/+1
| | | | | | middleware hehehehehe, "meddleware"
* Add app_config and global_config to the template environmentChristopher Allan Webber2011-11-191-0/+1
|
* Adding app_config and global_config to the template environmentChristopher Allan Webber2011-11-191-0/+2
|
* Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-131-4/+7
| | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
* Merge remote branch 'remotes/aaronw/bug444_fix_utils_py_redux'Christopher Allan Webber2011-10-011-0/+2
| | | | | Conflicts: mediagoblin/util.py
* Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-011-0/+114
tools/[file].py