[web2py] Re: syntax for updating record with factory

2015-06-07 Thread villas
Maybe also deleting all the existing sessions will also help. Good luck with it. -- 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 messa

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread Alex Glaros
I checked older version on PythonAnywhere and exact same code works perfectly, so It's not my browser or form code. What has changed are changes I made somewhere, but where? Recently added this session-related code but disabled it and problem persists session.saved_purpose = dict(the_purpose

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread villas
In addition to Anthony's idea. Check these: 1. On the example you posted maybe the indentation was wrong, but 'redirect' should have another indent otherwise it would redirect every time! 2. Make sure you are displaying the form in your view with simply this: {{=form}} All the best. D --

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread Anthony
Is it possible your browser isn't returning cookies or you have added some code that is clearing the sessions somewhere? By default, form.process() provides CSRF protection, which involves the session and therefore the session cookie -- messing with those will cause form processing to fail sile

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread Alex Glaros
okay, didn't want to use factory anyway. Reason I asked is because all of my previously-working forms quit working. They don't stop to let user type in content. No errors, control just proceeds past the form. Did I change change some global config setting? This used to work: form = SQLFORM

[web2py] Re: syntax for updating record with factory

2015-06-07 Thread villas
Hi Alex, You wouldn't usually use factory if you are updating a specific DB record. Anyhow update_record takes a dict: record.update_record(**dict(form.vars)) Maybe read the book chapter on forms again. Best wishes D On Sunday, 7 June 2015 06:50:38 UTC+1, Alex Glaros wrote: > > I cannot find