Switch over media processor to use the get_workbench decorator (#565)
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 12 Dec 2012 12:57:17 +0000 (13:57 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 16 Jan 2013 19:19:23 +0000 (20:19 +0100)
commit45ab3e07ef26199572207f5d826e6d912eb5b336
tree213650304a5a8d3c9e5ac42231517fd715da1bb8
parentf91dcc9d963c87d6b6752cb397e1ff9fdf57ad28
Switch over media processor to use the get_workbench decorator (#565)

This makes workbench getting more convenient by eliminating some
boilerplate and more robust by cleaning the workbench up even if processing
ends with an Exception.

Finally, this fixes the bugs in the ascii and video backends to never call
workbench.destroy, so those workbenches were never cleaned up.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/media_types/ascii/processing.py
mediagoblin/media_types/audio/processing.py
mediagoblin/media_types/image/processing.py
mediagoblin/media_types/stl/processing.py
mediagoblin/media_types/video/processing.py