This site is an archive; learn more about 8 years of OpenHatch.

[OH-Dev] Problem solved for now -- Re: Trying to Use Form Validation in Class Based Generic Views

Jacquie Flemming jacquelinehfl at gmail.com
Thu Mar 15 01:11:28 UTC 2012


done.

On Wed, Mar 14, 2012 at 1:55 AM, Jacquie Flemming
<jacquelinehfl at gmail.com>wrote:

> Dear OH Devs:
>
> And --> Asheesh thought Nathan would be particularly helpful here.
>
> I'm having problems rendering "svn_checkout_form.secret_word.errors".
> I updated missions.svn to use the form validation (is_valid()) called from
> 'def checkout_submit(request):' and to to my (and Asheesh's) surprise, I
> am not
> able to display the errors on the website.
>
> This is noticeable from /missions/svn/checkout, when trying to make the
> form validation fail but entering in the wrong secret word in the text
> field and hitting submit.
> This is also noticeable from running the test :
>      python manage.py test
> missions.SvnViewTests.test_do_checkout_mission_incorrectly
>
> with the output:
> ======================================================================
> FAIL: test_do_checkout_mission_incorrectly
> (mysite.missions.svn.tests.SvnViewTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/mariposa_218/oh-mainline/mysite/missions/svn/tests.py",
> line 108, in test_do_checkout_mission_incorrectly
>     self.assertTrue('incorrect' in text)
> AssertionError: False is not true
>
> I have put this up on github -
> https://github.com/jacquelineflemming/oh-busted-mission-svn
>
> -thank you.
>
> --
> “The more you read, the more things you will know. The more that you
> learn, the more places you'll go.” -Dr. Seuss
>



-- 
“The more you read, the more things you will know. The more that you learn,
the more places you'll go.” -Dr. Seuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openhatch.org/pipermail/devel/attachments/20120314/5220491f/attachment-0001.html>


More information about the Devel mailing list