60 Commits

Author SHA1 Message Date
Christopher Allan Webber
a1556d3f49 Mount media editing under /u/{username}/m/{media}/edit/ 2011-06-04 08:50:25 -05:00
Christopher Allan Webber
8ee83b4333 Let's redirect back to the media homepage using the slug instead of the id 2011-06-04 08:48:17 -05:00
Christopher Allan Webber
747623cc04 I shouldn't have removed the .save() entirely :) 2011-06-04 07:41:31 -05:00
Christopher Allan Webber
d5e90fe4b4 Find out if such a slug exists via a query instead of via a .save() call 2011-06-03 18:43:08 -05:00
Elrond
9bfe1d8e12 Add GNU headers to new *.py 2011-06-02 18:28:26 +02:00
Elrond
0732236e9c 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.
2011-06-02 17:43:54 +02:00
Elrond
8cd5d4f8c3 Prepare for moving /edit/ under /u/.../edit/
To make moving the whole thing under /u/ easier, prepare to
pass in the {user} needed for that.
2011-06-02 16:48:15 +02:00
Elrond
c849e69092 Check for edit permission.
You need to own the media, or be an admin to use the edit form.
As simple as that, for now.
2011-06-02 14:26:53 +02:00
Elrond
98857207cc "edit": Finally implement saving.
Currently no checks. Probably not so good.
And especially, every logged in user currently can edit the
data for any other user's media.
2011-05-27 00:17:30 +02:00
Elrond
aba81c9f20 Starting "edit" functionality.
This adds a link to the "edit" form, the form, the view for
displaying the form and that's about it.
2011-05-26 23:09:33 +02:00