852c7fdb8aMerge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-06-07 15:39:19 +02:00
eb21f9a6cbFixing check_filetype...
Christopher Allan Webber
2011-06-07 00:36:24 -05:00
9c50d0c698Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-06-06 21:26:58 +02:00
fe4ffb860fAdded a comment to clarify that this shouldn't stay here.
Christopher Allan Webber
2011-06-06 07:57:05 -05:00
2190ecde8dMerge remote branch 'remotes/gandaro/324-bad-media-types'
Christopher Allan Webber
2011-06-06 07:51:17 -05:00
ec8f66bd65Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-06-06 14:46:56 +02:00
3aa4c668b9A setup_fresh_app decorator which should make writing tests a bit easier. Setting test_register_views() to use it also.
Christopher Allan Webber
2011-06-06 07:45:18 -05:00
66471f0ee4A clear_test_buckets() method
Christopher Allan Webber
2011-06-06 07:44:12 -05:00
2fecc29d06Docstring for test_register_views()
Christopher Allan Webber
2011-06-05 18:16:31 -05:00
8a869db8e4Make sure that two users with the same username can't register.
Christopher Allan Webber
2011-06-05 18:14:48 -05:00
7b1e17ed0dEmail verification view test works
Christopher Allan Webber
2011-06-05 17:49:43 -05:00
1972a888b3Make sure we can register, and then that we get the verification email
Christopher Allan Webber
2011-06-05 17:39:47 -05:00
23cc15c998Use render_template utility so we can test whether or not this email sends
Christopher Allan Webber
2011-06-05 17:35:20 -05:00
2c3fd5c5bfMoved the verification url generation string template to a global variable
Christopher Allan Webber
2011-06-05 17:31:18 -05:00
8045fd4074Make sure that get_test_app() really does wipe the database
Christopher Allan Webber
2011-06-05 16:43:25 -05:00
2262b2a9e1Made a simple template rendering view and switched a bunch of code over to using it
Christopher Allan Webber
2011-06-05 15:58:35 -05:00
9038c9f9acI have a strong preference for aligning all parameters in a function call.
Christopher Allan Webber
2011-06-05 15:41:08 -05:00
a7fcc027aaMerge remote branch 'remotes/elrond/idea/shortcuts'
Christopher Allan Webber
2011-06-05 15:36:51 -05:00
cb9bac0c83Just a bit of formatting for these unfinished tests ;)
Christopher Allan Webber
2011-06-05 15:33:48 -05:00
7eac428526Instructions for running tests with the modern setup
Christopher Allan Webber
2011-06-05 15:33:28 -05:00
b8fbd81799New password check error message
Christopher Allan Webber
2011-06-05 15:33:07 -05:00
651403f025Test registration form integrity
Christopher Allan Webber
2011-06-05 15:30:07 -05:00
460ce56493The first bit of the registration tests working. Not fully there, but it's clear that the webtest part is working, without having tested the database yet. :)
Christopher Allan Webber
2011-06-05 10:34:29 -05:00
0a791a94deActually it's a lot better of an idea to load the full application out of the paste config file the way paste would than to load components of it ourselves.
Christopher Allan Webber
2011-06-05 10:33:59 -05:00
67e8c45d2aWe should store the template path, not the template object, as the key in our testing cache
Christopher Allan Webber
2011-06-05 10:31:29 -05:00
9150244afaCreate redirect shortcut and use it around
Elrond
2011-06-05 15:49:08 +02:00
1c63ad5d35Create render_to_reponse and use it everywhere.
Elrond
2011-06-05 15:25:45 +02:00
99619a625bFirefox 3.X shows hidden fields for some reason, adding display: none; to be rid of them for sure
Christopher Allan Webber
2011-06-05 09:14:38 -05:00
b5d3aec615Moving all views over to using util.render_template()!
Christopher Allan Webber
2011-06-04 17:36:36 -05:00
f99f61c65cCache template environments and gettexts so we don't have to reproduce them on every request.
Christopher Allan Webber
2011-06-04 16:44:22 -05:00
e9279f2137Added new render_template method which will make our lives nicer and also will be useful for unit testing purposes :)
Christopher Allan Webber
2011-06-04 16:32:13 -05:00
c5678c1ab3Proper webtest infrastructure... seems to be about right anyway :)
Christopher Allan Webber
2011-06-04 13:20:48 -05:00
a1556d3f49Mount media editing under /u/{username}/m/{media}/edit/
Christopher Allan Webber
2011-06-04 08:48:51 -05:00
8ee83b4333Let's redirect back to the media homepage using the slug instead of the id
Christopher Allan Webber
2011-06-04 08:48:17 -05:00
747623cc04I shouldn't have removed the .save() entirely :)
Christopher Allan Webber
2011-06-04 07:41:31 -05:00
f4b2bd93f2Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-06-04 02:22:09 +02:00
c042bc6e21Title first and foremost... anything else looks weird to me.
Christopher Allan Webber
2011-06-03 18:47:22 -05:00
3f0679cd78Merge branch 'media_edit'
Christopher Allan Webber
2011-06-03 18:43:20 -05:00
d5e90fe4b4Find out if such a slug exists via a query instead of via a .save() call
Christopher Allan Webber
2011-06-03 18:43:08 -05:00
55c74e1e4bPropagate Exceptions up in Celery-Eager-Mode
Elrond
2011-06-03 23:54:33 +02:00
2165d464a4Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-06-03 21:51:38 +02:00
02d80437d1Refactored the sending of verification emails.
Aleksandar Micovic
2011-06-02 21:07:37 -04:00
04cb99b223attribute values should be quoted :)
Christopher Allan Webber
2011-06-02 16:30:06 -05:00
f80cdc5868No reason for 'verification_successful = bool' here.
Christopher Allan Webber
2011-06-02 16:04:17 -05:00
3e96545095Added lines background to forms
Jef van Schendel
2011-06-02 22:57:10 +02:00
6a6355a989Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-06-02 22:09:52 +02:00
9bfe1d8e12Add GNU headers to new *.py
Elrond
2011-06-02 18:28:26 +02:00
3eeadc922aadd changes in mediagoblin/submit/views.py
Jakob Kramer
2011-06-02 17:47:38 +02:00
5603d4df8fshould fix#324
Jakob Kramer
2011-06-02 17:35:20 +02:00
0732236e9cHandle Exceptions from save(); Move may_edit_media
Elrond
2011-06-02 17:43:54 +02:00
8cd5d4f8c3Prepare for moving /edit/ under /u/.../edit/
Elrond
2011-06-02 16:48:15 +02:00
b897fdf91bChange edit form to use divs instead of table
Elrond
2011-06-02 16:39:47 +02:00
a77d952aa6No need for a method for generating the verification key as a method on the class, can just do that in the view
Christopher Allan Webber
2011-06-02 09:02:13 -05:00
e0f8487005Elrond put that ObjectId thing in the db.util module and wants us to use that one ;)
Christopher Allan Webber
2011-06-02 08:47:30 -05:00
c849e69092Check for edit permission.
Elrond
2011-06-02 14:25:31 +02:00
4d4b49a84e0.0.2 of GNU MediaGoblin!
Christopher Allan Webber
2011-05-31 19:54:26 -05:00
155f24f9f5If a user doesn't provide a userid and a token to the verify_email function, might as well 404
Christopher Allan Webber
2011-05-31 19:37:28 -05:00
73a1bc85f1Moving import to outside of this function
Christopher Allan Webber
2011-05-31 19:31:23 -05:00
a72c504b25Just adjusting some spacing so we don't go over 80 chars
Christopher Allan Webber
2011-05-31 19:30:05 -05:00
5866d1a8fbGive a "proper" view for resending verification email
Christopher Allan Webber
2011-05-31 19:29:36 -05:00
d9951a6e03Merge remote branch 'remotes/aleks/aleks'
Christopher Allan Webber
2011-05-31 19:17:28 -05:00
b93a6a229eAdded the ability to regenerate a verification key.
Aleksandar Micovic
2011-05-31 17:14:23 -04:00
bcec749b52Fixed bug where someone who wasn't logged in was asked to verify their emails.
Aleksandar Micovic
2011-05-31 15:26:00 -04:00
54f9d72356Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-05-31 14:32:46 +02:00
28afb47ca8Added a temporary verification page informing the user they need to authenticate.
Aleksandar Micovic
2011-05-30 23:51:30 -04:00
b1ae76aea0Add an index on MediaEntries making sure slugs + uploader combos are unique
Christopher Allan Webber
2011-05-30 18:06:12 -05:00
0d5094cb3bImproved object_gallery.html spacing
Jef van Schendel
2011-05-31 00:45:42 +02:00
8bfc87e18eUse the object gallery file on the front page also
Christopher Allan Webber
2011-05-29 17:49:03 -05:00
660e604824This <ul /> not used (second inside), removing
Christopher Allan Webber
2011-05-29 17:43:18 -05:00
db5912e358remove all 'username_repr' stuff
Jakob Kramer
2011-05-29 19:49:25 +02:00
ff6b9f7279don't import 're'
Jakob Kramer
2011-05-29 19:17:44 +02:00
ce72a1bb15this should fix#354
Jakob Kramer
2011-05-29 19:15:46 +02:00
dfd18edadcFirst changes to media gallery view
Jef van Schendel
2011-05-29 02:02:26 +02:00
d3060210bcSlightly modified text on media page
Jef van Schendel
2011-05-29 01:53:41 +02:00
37a0074826Centered image on media page
Jef van Schendel
2011-05-29 01:47:12 +02:00
722d6a9705Modified logo to change on :hover
Jef van Schendel
2011-05-29 01:43:12 +02:00
f0e621c8f5Changed submit form to divs
Jef van Schendel
2011-05-29 01:14:48 +02:00
df901af738Changed <p> font from 'sans' to 'sans-serif'
Joar Wandborg
2011-05-28 23:56:29 +02:00
00cc5cb745Changed <body> font from 'sans' to 'sans-serif'
Joar Wandborg
2011-05-28 23:54:15 +02:00
a78c8af8a6Merge branch 'master' of git://gitorious.org/~schendje/mediagoblin/schendjes-mediagoblin
Joar Wandborg
2011-05-28 23:52:00 +02:00
491dd3ff47*GNU* MediaGoblin on <title>
Joar Wandborg
2011-05-28 23:19:44 +02:00
b5cc7afea2Fixed submit button style, added create-account notice to log in page
Jef van Schendel
2011-05-28 21:32:12 +02:00
7c2005b6e2Forgot a bottom-margin for the error div
Jef van Schendel
2011-05-28 21:15:15 +02:00
b0ff25c82cChanged login forms to use divs instead of tables
Jef van Schendel
2011-05-28 21:10:54 +02:00
716a0ac3f1Styled error messages
Jef van Schendel
2011-05-28 21:02:34 +02:00
9ef7c0f737Fixed form header
Jef van Schendel
2011-05-28 20:43:57 +02:00
491b9109f3Styled forms
Jef van Schendel
2011-05-28 18:32:43 +02:00
ead3ebd6b7Merge remote-tracking branch 'gitorious/master'
Jef van Schendel
2011-05-28 17:44:15 +02:00
8566cdda71Added a new form rendering system, render_divs, and using it for registration
Christopher Allan Webber
2011-05-28 09:54:09 -05:00