aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/template.py
Commit message (Collapse)AuthorAgeFilesLines
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* f691: Use StrictUndefined for templates and fix some issuesElrond2012-01-041-0/+3
| | | | | | | | | | | | | | | | | References to undefined variables in templates were silently ignored/converted to None/empty strings. This makes coding lazy stuff easy, but it makes catching typos harder. (It would have catched one of the SQL things earlier!) But on the other hand it might make the current templates error out everywhere. In fact, early testing has shown two instances, that errored out. Those are fixed with this commit too. If this turns out to make things more complex and useless than actually solving any problems, it can easily be dropped again.
* 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