Christopher Allan Webber
e9279f2137
Added new render_template method which will make our lives nicer and
...
also will be useful for unit testing purposes :)
2011-06-04 16:33:19 -05:00
Christopher Allan Webber
c5678c1ab3
Proper webtest infrastructure... seems to be about right anyway :)
2011-06-04 13:20:48 -05:00
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
c042bc6e21
Title first and foremost... anything else looks weird to me.
2011-06-03 18:47:22 -05:00
Christopher Allan Webber
3f0679cd78
Merge branch 'media_edit'
2011-06-03 18:43:20 -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
55c74e1e4b
Propagate Exceptions up in Celery-Eager-Mode
...
When running in celery-eager mode, the celery machinery
hides all exceptions inside "celery tasks" (you can find
out about them on the task handle somehow). Currently much
better to propagate them straight up, so they're visible on
the console.
2011-06-03 23:54:33 +02:00
Aleksandar Micovic
02d80437d1
Refactored the sending of verification emails.
2011-06-02 21:07:37 -04:00
Christopher Allan Webber
04cb99b223
attribute values should be quoted :)
2011-06-02 16:30:06 -05:00
Christopher Allan Webber
f80cdc5868
No reason for 'verification_successful = bool' here.
2011-06-02 16:04:17 -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
b897fdf91b
Change edit form to use divs instead of table
2011-06-02 16:39:47 +02:00
Christopher Allan Webber
a77d952aa6
No need for a method for generating the verification key as a method
...
on the class, can just do that in the view
2011-06-02 09:02:13 -05:00
Christopher Allan Webber
e0f8487005
Elrond put that ObjectId thing in the db.util module and wants us to
...
use that one ;)
2011-06-02 08:47:30 -05:00
Elrond
7fd6f623f1
Merge remote branch 'upstream/master'
...
Conflicts:
mediagoblin/templates/mediagoblin/user_pages/media.html
2011-06-02 14:41:50 +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
Christopher Allan Webber
4d4b49a84e
0.0.2 of GNU MediaGoblin!
2011-05-31 19:54:26 -05:00
Christopher Allan Webber
155f24f9f5
If a user doesn't provide a userid and a token to the verify_email function, might as well 404
2011-05-31 19:37:28 -05:00
Christopher Allan Webber
73a1bc85f1
Moving import to outside of this function
2011-05-31 19:31:23 -05:00
Christopher Allan Webber
a72c504b25
Just adjusting some spacing so we don't go over 80 chars
2011-05-31 19:30:05 -05:00
Christopher Allan Webber
5866d1a8fb
Give a "proper" view for resending verification email
2011-05-31 19:29:36 -05:00
Christopher Allan Webber
d9951a6e03
Merge remote branch 'remotes/aleks/aleks'
2011-05-31 19:17:28 -05:00
Aleksandar Micovic
b93a6a229e
Added the ability to regenerate a verification key.
2011-05-31 17:14:23 -04:00
Aleksandar Micovic
bcec749b52
Fixed bug where someone who wasn't logged in was asked to verify
...
their emails.
2011-05-31 15:26:00 -04:00
Aleksandar Micovic
28afb47ca8
Added a temporary verification page informing the user they need
...
to authenticate.
2011-05-30 23:51:30 -04:00
Christopher Allan Webber
b1ae76aea0
Add an index on MediaEntries making sure slugs + uploader combos are unique
2011-05-30 18:06:12 -05:00
Christopher Allan Webber
8bfc87e18e
Use the object gallery file on the front page also
2011-05-29 17:49:03 -05:00
Christopher Allan Webber
660e604824
This <ul /> not used (second inside), removing
2011-05-29 17:43:18 -05:00
Jakob Kramer
db5912e358
remove all 'username_repr' stuff
2011-05-29 19:49:25 +02:00
Jakob Kramer
ff6b9f7279
don't import 're'
2011-05-29 19:17:44 +02:00
Jakob Kramer
ce72a1bb15
this should fix #354
2011-05-29 19:15:46 +02:00
Jef van Schendel
dfd18edadc
First changes to media gallery view
2011-05-29 02:02:26 +02:00
Jef van Schendel
d3060210bc
Slightly modified text on media page
2011-05-29 01:53:41 +02:00
Jef van Schendel
37a0074826
Centered image on media page
2011-05-29 01:47:12 +02:00
Jef van Schendel
722d6a9705
Modified logo to change on :hover
2011-05-29 01:43:12 +02:00
Jef van Schendel
f0e621c8f5
Changed submit form to divs
2011-05-29 01:14:48 +02:00
Joar Wandborg
df901af738
Changed <p> font from 'sans' to 'sans-serif'
2011-05-28 23:56:29 +02:00
Joar Wandborg
00cc5cb745
Changed <body> font from 'sans' to 'sans-serif'
2011-05-28 23:54:15 +02:00
Joar Wandborg
a78c8af8a6
Merge branch 'master' of git://gitorious.org/~schendje/mediagoblin/schendjes-mediagoblin
2011-05-28 23:52:00 +02:00
Joar Wandborg
491dd3ff47
*GNU* MediaGoblin on <title>
2011-05-28 23:19:44 +02:00
Jef van Schendel
b5cc7afea2
Fixed submit button style, added create-account notice to log in page
2011-05-28 21:32:12 +02:00
Jef van Schendel
7c2005b6e2
Forgot a bottom-margin for the error div
2011-05-28 21:15:15 +02:00
Jef van Schendel
b0ff25c82c
Changed login forms to use divs instead of tables
2011-05-28 21:10:54 +02:00
Jef van Schendel
716a0ac3f1
Styled error messages
2011-05-28 21:02:34 +02:00
Jef van Schendel
9ef7c0f737
Fixed form header
2011-05-28 20:43:57 +02:00
Jef van Schendel
491b9109f3
Styled forms
2011-05-28 18:32:43 +02:00