aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Canonical license URIS for CC stuff should have a trailing slash.Christopher Allan Webber2012-01-211-5/+5
|
* Show the license list in sorted formChristopher Allan Webber2012-01-211-1/+1
|
* Provided a SORTED_SUPPORTED_LICENSES (but keep the old unsorted dict!)Christopher Allan Webber2012-01-211-38/+31
|
* Added new filesAaron Williamson2012-01-171-0/+62
|
* Drop sessions with invalid ObjectIdsElrond2012-01-141-4/+8
| | | | | | | | The session can contain invalid objectids when switching a more or less live instance (with logged in users) from mongo to sql or vice versa. So drop the complete session and force the user to login again.
* 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.
* Dot-Notation for MediaEntry.media_filesElrond2012-01-041-1/+1
|
* Merge remote branch 'remotes/manolinux/671_spaces_in_tag_list_edit'Elrond2011-12-031-2/+3
|\ | | | | | | | | | | * remotes/manolinux/671_spaces_in_tag_list_edit: * Feature #678: Drop custom delimiters in tags * Eliminate the definition of the tag delimiter for tests. * Remove a test that was related to custom tags delimiter. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read * Modify a test to include this space. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma. * Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
| * * Bug #671: Tags list on Edit page is not seperated by spaces and hard to ↵Manuel Urbano Santos2011-11-271-2/+3
| | | | | | | | | | | | read : Make 'media_tags_as_string' function put a space after each comma. * Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
* | 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.
* | Should be 404 for 404s, not 400 :)Christopher Allan Webber2011-12-011-1/+1
| |
* | 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
|
* Dot-Notation for "_id"Elrond2011-11-151-1/+1
| | | | | | | | | Note: Migrations can't use "Dot Notation"! Migrations run on pymongo, not mongokit. So they can't use the "Dot Notation". This isn't really a big issue, as migrations are anyway quite mongo specific.
* Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-137-14/+35
| | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
* Support for older webobs and newer webobs both in accept language mess :)Christopher Allan Webber2011-10-151-2/+11
|
* Fixes issue662, MediaGoblin was broken by recent WebOb release.Christopher Allan Webber2011-10-151-7/+3
| | | | | | | | | | From WebOb release notes: "Accept.best_matches() is gone; use list(request.accept) or request.accept.best_match(..) instead (applies to all Accept-* headers) or similar with request.accept_language." ... seems that's what borked it...
* i592: Use full path in various placesElrond2011-10-031-1/+1
| | | | | | | | | | | | | | | | When running mediagoblin in a sub path on a web server, most things inside mediagoblin need the "inside path", but when generating URLs for the webbrowser, full paths are needed. urlgen and routes already do that. Some (mostly pagination and login) need the URL of the current page. They used request.path_info. But this is the "inside" path, not the full. So now there is request.full_path and its used in various places.
* Merge remote branch 'remotes/aaronw/bug444_fix_utils_py_redux'Christopher Allan Webber2011-10-011-0/+2
| | | | | Conflicts: mediagoblin/util.py
* Finished splitting util.py into separate files.Aaron Williamson2011-10-018-0/+523
|
* Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-015-0/+330
tools/[file].py