aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into 201207-testfixesBrett Smith2012-07-082-5/+29
|\
| * Decoding EXIF strings as UTF-8 with replace in the ifd_tag_to_dictJoar Wandborg2012-07-071-1/+14
| | | | | | | | method.
| * Switching the syntax of this exception-raiseChristopher Allan Webber2012-07-061-2/+1
| | | | | | | | | | | | | | It's nicer to raise exceptions like raise Exception("foo") than raise Exception, "foo"
| * Removing _jointhat()... not really needed.Christopher Allan Webber2012-07-061-14/+2
| |
| * one more noSuchFiles->no_such_filesChristopher Allan Webber2012-07-061-1/+1
| |
| * Merge remote-tracking branch 'refs/remotes/merge-requests/37'Christopher Allan Webber2012-07-061-4/+28
| |\
| | * changing NoSuchFiles for no_such_filesJorge Araya Navarro2012-07-051-4/+4
| | |
| | * fixing bug #255 as Joar and CWebber ask me to do :)Jorge Araya Navarro2012-06-281-4/+28
| | |
* | | Don't rely on app_config if common.TESTS_ENABLED.Brett Smith2012-07-081-3/+4
|/ / | | | | | | | | app_config will be None in this case, so all of these subscripts will fail.
* / Fixed EXIF longitude bugJoar Wandborg2012-06-231-3/+14
|/ | | | | - Negative or 'W' longitudes were not accounted for. - pyflakes fixes.
* Update documentation for pluginsWill Kahn-Greene2012-05-161-12/+41
|
* 401. Plugin infrastructureWill Kahn-Greene2012-05-131-0/+118
| | | | | | | | * implements installing, loading and setup for plugins * codifies configuration * has a sample plugin * docs * tests
* Merge remote-tracking branch 'remotes/slikdigit/bassam'Christopher Allan Webber2012-03-261-0/+7
|\ | | | | | | | | Conflicts: mediagoblin/media_types/image/processing.py
| * fix for ticket #404Bassam2012-03-151-0/+7
| |
* | Another .one -> .find_oneElrond2012-03-131-2/+6
|/ | | | | | | | | | | | | | | | | Same idea as in the previous commit. Joar caught this one. To reproduce 1. Create a user with an all-decimal ObjectId in mongo 2. Login using that user, while mongodb is enabled. 3. Switch instance to sql. 4. Restart. 5. Refresh any page. This will error, because no user with that object id exists any more. While around, improved logging.
* Attachment support in the SQL backendElrond2012-02-281-1/+1
| | | | | | | | | attachments working with the sql backend. - SQL Schema for attachment files, ordering attachments by their name, not by the submission order (as earlier). - Dot-Notation for attachments, where missing. - convert existing attachments over from mongo -> sql
* Fix copyright statements; add LICENSE for EXIF.pyWill Kahn-Greene2012-02-082-2/+2
|
* It's 2012 all up in hereChristopher Allan Webber2012-02-0211-11/+11
|
* Acts on feedback from ChrisJoar Wandborg2012-01-251-7/+4
| | | | | | | - Added EXIF tests - Removed pdb from image processing "ifmain" - Fixed comment typo in image processing - Removed unused import in tools.exif
* EXIF fixesJoar Wandborg2012-01-253-0/+169
| | | | | | | - Moved exif functions from mediagoblin.media_types.image.processing to mediagoblin.tools.exif - Moved EXIF.py link from mediagoblin.media_types to mediagoblin.tools.extlib - Refractored and updated EXIF exctraction and presentation
* 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