Handle Exceptions from save(); Move may_edit_media
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 2 Jun 2011 15:43:54 +0000 (17:43 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 2 Jun 2011 15:43:54 +0000 (17:43 +0200)
commit0732236e9c816dd2b04f5a9e97632a861de225ad
treefc421202b6e71cd54ded9c47b6fbfc12efcbfcff
parent8cd5d4f8c3de634905651b1d1e8cd1355b7f3a99
Handle Exceptions from save(); Move may_edit_media

Turn .save() excpetions into a HTTPConflict. Not nice, but
at least the user gets the error.  Until there is a proper
way to validate things and get nice errors.

Move may_edit_media() to lib.py, as it's not a view.
mediagoblin/edit/lib.py [new file with mode: 0644]
mediagoblin/edit/views.py