aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/processing/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | added image reprocessingRodney Ewing2013-08-161-0/+17
| |/
* | -update to latest masterRodney Ewing2013-08-191-4/+2
| | | | | | | | | | | | - have mg generate task_id remove
* | Tweak Celery TaskSebastian Spaeth2013-08-191-3/+4
|/ | | | | | | | | | | | - Make sure Exceptions are pickleable (not sure if this was not the case but this is the pattern as documented in the celery docs. - Don't create a task_id in the GMG code, but save the one implicitely created by celery. - Don't create a task-id directory per upload. Just store queued uploads in a single directory (this is the most controversial change and might need discussion!!!) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Doc string for ProcessingState.Elrond2013-04-221-0/+8
|
* Implement queue dir delete for proc_state.delete_queue_fileElrond2013-04-081-1/+6
| | | | | Implement queue dir deleting in the proc_state.delete_queue_file helper function.
* Create ProcessingState.store_public.Elrond2013-04-031-2/+10
| | | | | | The ideas is by Alon Levy. Use it in ProcessingState.copy_original for now.
* Kill monkeypatching of ProcessingState.Elrond2013-02-081-13/+0
| | | | | | | And change the process_foo() API to accept a processingstate now. image and video are tested, the others are UNTESTED.
* Also refactor "copy original into public storage".Elrond2013-02-081-0/+6
| | | | | | | This makes the processing code easier to read/write and alos will help the reprocessing once we get to it. Thanks to Joar Wandborg for testing!
* ProcessingState: Document monkey patching.Elrond2013-02-081-0/+10
|
* Implement ProcessingState class and use for imagesElrond2013-02-081-0/+31
| | | | | | | | | | The idea is to have a class that has the knowledge of the currently being processed media and also has tools for that. The long term idea is to make reprocessing easier by for example hiding the way the original comes into the processing code.
* Move DBModel._id -> DBModel.idSebastian Spaeth2012-12-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | We were refering to model._id in most of the code base as this is what Mongo uses. However, each use of _id required a) fixup of queries: e.g. what we did in our find() and find_one() functions moving all '_id' to 'id'. It also required using AliasFields to make the ._id attribute available. This all means lots of superfluous fixing and transitioning in a SQL world. It will also not work in the long run. Much newer code already refers to the objects by model.id (e.g. in the oauth plugin), which will break with Mongo. So let's be honest, rip out the _id mongoism and live with .id as the one canonical way to address objects. This commit modifies all users and providers of model._id to use model.id instead. This patch works with or without Mongo removed first, but will break Mongo usage (even more than before) I have not bothered to fixup db.mongo.* and db.sql.convert (which converts from Mongo to SQL) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Panel improvementsJoar Wandborg2012-07-111-0/+11
| | | | | | | | | | - Added progress meter for video and audio media types. - Changed the __repr__ method of a MediaEntry to display a bit more useful explanation. - Added a new MediaEntry.state, 'processing', which means that the task is running the processor on the item currently. - Fixed some PEP8 issues in user_pages/views.py - Fixed the ATOM TAG URI to show the correct year.
* Prevent non-Unicode SQLAlchemy warnings in most submission tests.Brett Smith2012-07-081-1/+1
| | | | This commit makes test_submission mostly warning-clean.
* Merge remote-tracking branch 'joar/audio+sniffing'Joar Wandborg2012-03-271-3/+0
| | | | | | | | Conflicts: mediagoblin/media_types/image/processing.py mediagoblin/media_types/video/__init__.py mediagoblin/media_types/video/processing.py mediagoblin/tests/test_submission.py
* Merge remote branch 'origin/master' into bug261-resized-filenamesBrett Smith2012-03-261-0/+32
| | | | | | This merge involved moving the new FilenameBuilder class to processing/__init__.py, and putting the comment deletion tests back into test_submission.py using the refactored functions.
* Move celery task into own task.pyElrond2012-03-211-57/+1
| | | | | | Move the actual celery task from processing/__init__.py into its own .../task.py. That way it can be imported as needed.
* Turn processing.py into a submodule.Elrond2012-03-211-0/+154
processing.py -> processing/__init__.py This is in preparation for splitting processing a bit. The main reason for the split is celery setup: celery needs to be setup before even importing and importing and subclassing some of its parts. So it's better to move the critical parts into their own submodule and import it as late as needed.