On Monday, April 21, 2014 5:30:40 PM UTC-5, Anthony wrote:
>
> ...when you create and process the form, its formkey goes into a list in 
> the session...
>

Um, create and process are two different things. :-) After finally figuring 
out how to see what's going on, I realize that it is the process() method 
that makes this happen. For some reason I expected it to be the creation 
method - maybe because it is surprising and unintuitive to me that you are 
required call a process method before the form has even been displayed! (I 
had set up my code that way because that's how the tutorial does it, but I 
would never think to do it that way if it were just up to me.)

Okay, and now I am seeing that there is an attribute on the SQLFORM so I 
can pull out the formkey and make the one in my own HTML match. (I had been 
kludging it by looking through the SQLFORM and pulling them out of the 
<input> structure, but that's far from ideal!)

Thanks again for your help.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to