Anthony, and if I just want the form validation, without updating the database?

Isn't what form.validate().accepted is supposed to do?



On Mon, Nov 7, 2011 at 11:01 AM, Anthony <[email protected]> wrote:
> Yes, that's an error in the book. form.validate() returns True or False.
> form.process() returns the form itself, so you have to check the status via
> form.process().accepted.
> Anthony
>
> On Monday, November 7, 2011 7:15:54 AM UTC-5, viniciusban wrote:
>>
>> I tryed this construction:
>> if form.validate().accepted:
>>    print "accepted"
>>
>> But I got this error:
>> AttributeError: 'NoneType' object has no attribute 'accepted'
>>
>> In book, chapter 7, "SQLFORM without database IO" section has 2
>> examples using form.validate().accepted.
>> Is it an error or didn't I get something?
>>
>> --
>> Vinicius Assef.
>

Reply via email to