4173 Commits

Author SHA1 Message Date
Christopher Allan Webber
d07713d0b0 This attribute in quotes, too. :) 2011-06-07 20:39:51 -05:00
Christopher Allan Webber
960cbf9689 XML attributes must be in quotes! 2011-06-07 20:38:05 -05:00
Jef van Schendel
82e64b1f12 Added cancel button, capitalised button labels 2011-06-07 16:28:54 +02:00
Jef van Schendel
bb1f2f89e1 Changed edit page: new background image, image is included in form, submit button text changed, title text changed, created new css class for edit forms 2011-06-07 16:02:16 +02:00
Jef van Schendel
852c7fdb8a Merge remote-tracking branch 'gitorious/master' 2011-06-07 15:39:19 +02:00
Christopher Allan Webber
eb21f9a6cb Fixing check_filetype...
We need to check the first part of the guess_type returned tuple, and
also this try: except: doesn't belong here, so killing.
2011-06-07 00:36:24 -05:00
Jef van Schendel
9c50d0c698 Merge remote-tracking branch 'gitorious/master' 2011-06-06 21:26:58 +02:00
Christopher Allan Webber
fe4ffb860f Added a comment to clarify that this shouldn't stay here. 2011-06-06 07:57:05 -05:00
Christopher Allan Webber
2190ecde8d Merge remote branch 'remotes/gandaro/324-bad-media-types' 2011-06-06 07:51:17 -05:00
Jef van Schendel
ec8f66bd65 Merge remote-tracking branch 'gitorious/master' 2011-06-06 14:46:56 +02:00
Christopher Allan Webber
3aa4c668b9 A setup_fresh_app decorator which should make writing tests a bit easier.
Setting test_register_views() to use it also.
2011-06-06 07:45:18 -05:00
Christopher Allan Webber
66471f0ee4 A clear_test_buckets() method 2011-06-06 07:44:12 -05:00
Christopher Allan Webber
2fecc29d06 Docstring for test_register_views() 2011-06-05 18:16:31 -05:00
Christopher Allan Webber
8a869db8e4 Make sure that two users with the same username can't register. 2011-06-05 18:14:48 -05:00
Christopher Allan Webber
7b1e17ed0d Email verification view test works 2011-06-05 17:49:43 -05:00
Christopher Allan Webber
1972a888b3 Make sure we can register, and then that we get the verification email 2011-06-05 17:39:47 -05:00
Christopher Allan Webber
23cc15c998 Use render_template utility so we can test whether or not this email
sends
2011-06-05 17:35:20 -05:00
Christopher Allan Webber
2c3fd5c5bf Moved the verification url generation string template to a global variable 2011-06-05 17:31:45 -05:00
Christopher Allan Webber
8045fd4074 Make sure that get_test_app() really does wipe the database 2011-06-05 16:43:25 -05:00
Christopher Allan Webber
2262b2a9e1 Made a simple template rendering view and switched a bunch of code over to using it 2011-06-05 15:58:35 -05:00
Christopher Allan Webber
9038c9f9ac I have a strong preference for aligning all parameters in a function call. 2011-06-05 15:41:08 -05:00
Christopher Allan Webber
a7fcc027aa Merge remote branch 'remotes/elrond/idea/shortcuts' 2011-06-05 15:36:51 -05:00
Christopher Allan Webber
cb9bac0c83 Just a bit of formatting for these unfinished tests ;) 2011-06-05 15:33:48 -05:00
Christopher Allan Webber
7eac428526 Instructions for running tests with the modern setup 2011-06-05 15:33:28 -05:00
Christopher Allan Webber
b8fbd81799 New password check error message 2011-06-05 15:33:07 -05:00
Christopher Allan Webber
651403f025 Test registration form integrity 2011-06-05 15:30:07 -05:00
Christopher Allan Webber
460ce56493 The 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.  :)
2011-06-05 10:34:29 -05:00
Christopher Allan Webber
0a791a94de Actually 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.

Aside from this being nicer, it's also necessary for the sake of
getting the middleware working nicely.  We could do it ourselves, but
why bother when paste can just do it for us?
2011-06-05 10:33:59 -05:00
Christopher Allan Webber
67e8c45d2a We should store the template path, not the template object, as the key
in our testing cache
2011-06-05 10:31:29 -05:00
Elrond
9150244afa Create redirect shortcut and use it around
This is just replacing exc.HTTPFound(location=request.urlgen(...))
by redirect(request, ...). No magic.
2011-06-05 16:16:03 +02:00
Elrond
c9c2493435 Reformat render_to_response calls
Just a simple indentation and ordering change, no
functional change.
2011-06-05 16:16:03 +02:00
Elrond
1c63ad5d35 Create render_to_reponse and use it everywhere.
Just a shortcut for Response(render_template(...))
2011-06-05 16:16:03 +02:00
Christopher Allan Webber
99619a625b Firefox 3.X shows hidden fields for some reason, adding display: none;
to be rid of them for sure
2011-06-05 09:14:38 -05:00
Christopher Allan Webber
b5d3aec615 Moving all views over to using util.render_template()! 2011-06-04 17:36:36 -05:00
Christopher Allan Webber
f99f61c65c Cache template environments and gettexts so we don't have to reproduce
them on every request.
2011-06-04 16:44:22 -05:00
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
Jef van Schendel
f4b2bd93f2 Merge remote-tracking branch 'gitorious/master' 2011-06-04 02:22:09 +02: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
Jef van Schendel
2165d464a4 Merge remote-tracking branch 'gitorious/master' 2011-06-03 21:51:38 +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
Jef van Schendel
3e96545095 Added lines background to forms 2011-06-02 22:57:10 +02:00