aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/process_media
Commit message (Collapse)AuthorAgeFilesLines
* Switch BaseProcessingFail.exception_path's separator from period to colonChristopher Allan Webber2011-08-141-11/+1
| | | | | | Also removing .generator_error_message() which doesn't make sense really... we need to get the message when we don't have an instance of the exception, and this method requires an instance.
* Converting multi-line-string-comment to a real comment.Christopher Allan Webber2011-08-131-5/+3
|
* @task decorator no longer used! Removing that import.Christopher Allan Webber2011-08-131-1/+13
|
* Capture and properly handle errors.Christopher Allan Webber2011-08-131-22/+32
| | | | | | | | | | | | | | Handled in several places: - In the run() of the ProcessMedia itself for handled (BaseProcessingFail derived) errors (best to do these not in on_failure because the errors are highlighted in celeryd in a way that looks inappropriate for when the errors are well handled) - In ProcessMedia.on_failure() for all other errors - In the submit view where all exceptions are caught, media is marked at having failed, then the error is re-raised. (The reason for this is that users running in "lazy" mode will get errors propagated by celery and so on_failure won't run for them.)
* Proper handling of processor failures, working as hoped!Christopher Allan Webber2011-08-131-11/+65
| | | | | | BaseProcessingFail based exceptions recorded and marked appropriately in the database. Other exceptions also caught and marked (or rather not marked) appropriately in the database as well.
* Create processing errors and raise BadMediaFail on failure to load the imageChristopher Allan Webber2011-08-122-1/+61
|
* Feature 477 - Support Cloud Files public storageJoar Wandborg2011-08-041-3/+10
| | | | | | | | | * Added configuration options to mediagoblin.ini * process_media supports the python-cloudfiles almost-file-like objects by wrapping them in a contextlib.contextmanager-decorated func. * storage now has the CloudFilesStorage * New dependency added to setup.py; `python-cloudfiles`
* Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'Christopher Allan Webber2011-07-161-13/+20
|\ | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/process_media/__init__.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/util.py
| * Feature #400 - Resize images to fit on page - AdditionsJoar Wandborg2011-07-031-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `migrations.py` * Removed empty line * Added empty line * `models.py` * Added `MediaEntry.get_display_media()` helper function * `process_media.__init__.py` * Updated `process_media_initial()` * Renamed `main` => `original`. * Added condition to `medium`, it's only created if the original dimensions exceed the MEDIUM_SIZE dimensions. * `media.html` * The image tag is now populated by `MediaEntry.get_display_media()` * `util.py` * Added `DISPLAY_IMAGE_FETCHING_ORDER`, used by `MediaEntry.get_display_media()`
* | Set the jpeg quality at 90 for now...Christopher Allan Webber2011-07-041-2/+2
| |
* | Not happy with 180x135, switching back to 180x180Christopher Allan Webber2011-07-041-1/+1
| |
* | New thumbnail size is apparently 180x135.Christopher Allan Webber2011-07-031-1/+1
|/ | | | We don't know if that's permanent but if it isn't it seems "Mostly Harmless"
* Feature #400 - Resize images to fit on pageJoar Wandborg2011-07-031-11/+25
| | | | | | | | | | * `mediagoblin.process_media.__init__` * Added `medium` size image conversion * Updated `thumbnail` conversion to use `queued_filename` instead of `queued_file` * `media.html` * If there exists a `medium` size for the `MediaEntry`, it will display instead of the original `main` image.
* Merge remote branch 'remotes/elrond/dev/workbench_class'Christopher Allan Webber2011-06-141-3/+3
|\
| * Move destroy_workbench to Workbench classElrond2011-06-141-1/+1
| | | | | | | | | | And add a lot of warnings, as the checks for "being part of the main Manager" are all gone.
| * Create a Workbench class and use it everywhere.Elrond2011-06-131-2/+2
| | | | | | | | | | Some references to Workbench.dir look ugly, I'm happy to hear suggestions there.
* | Merge remote branch 'remotes/elrond/idea/simple_proc_media_clean'Christopher Allan Webber2011-06-121-8/+10
|\ \ | |/ |/| | | | | Conflicts: mediagoblin/process_media/__init__.py
| * Refactor filename generation in the public storeElrond2011-06-081-8/+10
| | | | | | | | | | Just a small refactoring of the filename setup in the public store. Very simple.
* | ensure color mode compatibility when making image thumbnailscfdv2011-06-121-0/+3
| |
* | First import of mg_globals as mgg, partly because I just wanted it toChristopher Allan Webber2011-06-121-11/+11
| | | | | | | | be clear that it's okay to do by doing it *somewhere* :)
* | mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-1/+1
| |
* | possibly_localize_file->localized_file... a bit less terribly long.Christopher Allan Webber2011-06-111-1/+1
| |
* | Switch process_media over to using the workbench.Christopher Allan Webber2011-06-111-2/+11
| |
* | Moving workbench out of process_mediaChristopher Allan Webber2011-06-111-140/+0
| |
* | Merge branch 'master' into workbenchChristopher Allan Webber2011-06-111-9/+10
|\ \
| * | Import mediagoblin.globals as mg_globals so we can be sure things areChristopher Allan Webber2011-06-111-9/+10
| |/ | | | | | | set up in the right order.
* | We don't need this extra '.' in making the filenameChristopher Allan Webber2011-06-111-1/+1
| |
* | Wrote functions and documentation for all the WorkbenchManagerChristopher Allan Webber2011-06-111-8/+75
| | | | | | | | functions but haven't actually tested them yet. :)
* | Base structure of workbench managerChristopher Allan Webber2011-06-111-0/+73
|/
* Move ObjectId, DESCENDING to db.utilElrond2011-05-181-2/+2
| | | | | | We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this.
* Erk, we didn't save the state right beforeChristopher Allan Webber2011-05-061-2/+2
|
* Process media! Successfully!Christopher Allan Webber2011-05-061-5/+20
|
* Add a rudimentary media processing function.Christopher Allan Webber2011-05-031-0/+50
Haven't completely checked it for workingness, and not the final form this will take :)