[web2py] Re: How can I keep the user input value in form after user submit the form?

2016-07-06 Thread Jing Lu
> form=SQLFORM(db.user) > if form.accepts(request.vars,session,keepvalues=True): > response.flash="record inserted" > return dict(form=form) > > Notice the keepvalues=True argument of the accepts method. > > > http://www.web2py.com/AlterEgo/defau

[web2py] How can I keep the user input value in form after user submit the form?

2016-07-06 Thread Jing Lu
Dear Web2Py developers, Is there any way that I can keep the user input value in the form using SQLFORM? Thanks, Jing -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: How to use the administrator account to check error for apache + web2py framework?

2016-07-02 Thread Jing Lu
;)), > > > 2°) Copy tickets.py in controller > > 3°) Extract tickets.7z in view > > Regards. > > El jueves, 30 de junio de 2016, 18:25:19 (UTC-3), Jing Lu escribió: >> >> Dear Web2py developers, >> >> The admin is blocked by the apac

[web2py] Re: Update a form with new attributes

2016-06-30 Thread Jing Lu
OK, i figure it out by adding a hidden function to generate the form. On Wednesday, June 22, 2016 at 1:23:56 PM UTC-4, Jing Lu wrote: > > Hi Web2py developers, > > I have a trivial question, but I don't know how to solve. My index.html > has a form with some default paramet

[web2py] How to use the administrator account to check error for apache + web2py framework?

2016-06-30 Thread Jing Lu
Dear Web2py developers, The admin is blocked by the apache config. If I still want to use admin account to check error information, what should I do? Thanks, Jing -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Could I specific two different locations for 'include' in layout.html?

2016-06-24 Thread Jing Lu
Dear web2py developers, I have two places I want to change in layout.html. One is a left-bar and one is the main frame. Is there any way to add two ‘include’? Or, is there any way that I can do something functionally similar? Thanks, -- Resources: - http://web2py.com - http://web2py.com/boo

[web2py] Update a form with new attributes

2016-06-22 Thread Jing Lu
Hi Web2py developers, I have a trivial question, but I don't know how to solve. My index.html has a form with some default parameters. I get the input from users and save it to sessions and then redirect them to the next page with the same form having the input data from users. However, I don't