[web2py] Re: Difficulty with a form

2010-02-20 Thread waTR
There is no link to them anywhere though. I found it only through google searching. It needs to be added in the book website under Other resources. On Feb 19, 3:20 am, selecta gr...@delarue-berlin.de wrote: Also, I couldn't find a link to the epydocs ?  Where did that go?  It was really

[web2py] Re: Difficulty with a form

2010-02-19 Thread selecta
Also, I couldn't find a link to the epydocs ?  Where did that go?  It was really great! under http://web2py.com/examples/default/docs i can see http://web2py.com/examples/static/epydoc/index.html or just go to http://127.0.0.1:8000/examples/static/epydoc/index.html -- You received this

[web2py] Re: Difficulty with a form

2010-02-19 Thread mdipierro
I assume you are using a custom form in the view. web2py expects those fields that are in the form. web2py does not know that the field value is not present because you chose not to display it. Before form = SQLFORM(db.user, session.currentUserID) you should do

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
Also, I couldn't find a link to the epydocs ? Where did that go? It was really great! On Feb 18, 3:49 pm, waTR r...@devshell.org wrote: I have created a form using SQLForm. I am using a db query to select a single row from a db table, and I want to make changes to it. However, when I

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
The only work-around I found was to mark all the required info as hidden html, and so it now populates the request.vars with the stuff it needs for the form to submit. This is not good for me though, as I would really like to have only the data I want to change be passed to the public html view. I

Re: [web2py] Re: Difficulty with a form

2010-02-18 Thread Jonathan Lundell
On Feb 18, 2010, at 8:25 PM, waTR wrote: The only work-around I found was to mark all the required info as hidden html, and so it now populates the request.vars with the stuff it needs for the form to submit. This is not good for me though, as I would really like to have only the data I want

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
The problem is that the controller does: if form.accepts(request.vars, session, keepvalues=True): In my case, it throws an error saying the request.vars doesn't contain a company_id for the SQLForm made using db.user. So I have to pass a hidden form.custom.widget.company_id element to the view