ERRATA:

Do not use crud.form

use instead

form=SQLFORM(db.table)
if FORM.accepts(form,request.vars):
    session.form_vars=form.vars

On Nov 27, 7:36 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Do not use crud.form
>
> use instead
>
> form=SQLFORM(db.table)
> if FORM.accepts(form,request.vars):
>     session.form_vars=request.vars
>
> On Nov 27, 6:30 pm, johntynan <jgty...@gmail.com> wrote:
>
> > I have a question about saving the values from a crud form as session
> > variables (as opposed to updating a record in the database).
>
> > Do you know where there might be a good example for doing this?
>
> > To get started, I riffed off of the thread here:
>
> >http://groups.google.com/group/web2py/browse_thread/thread/5343d94b45...
>
> > And then modified the class set_cookies()  that I had started in
> > controllers/default.py
>
> > here:
>
> >http://code.google.com/p/django-pledgedrive/source/browse/trunk/pledg...
>
> > and in the simple session_form.html here:
>
> >http://code.google.com/p/django-pledgedrive/source/browse/trunk/pledg...
>
> > Thanks for any suggestions you might have!
>
> > John T.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to