[web2py] Re: default/user.html and custom form

2012-05-06 Thread Cédric Mayer
The fact is that you know more about web2py and details than me :-) I learned about form.custom after I had done my function and used it in my views. But even then I didn't know about the split form.custom.end[1] to get hidden fields. By the way I do not think it is in the book, you may add it.

[web2py] Re: default/user.html and custom form

2012-05-05 Thread Massimo Di Pierro
I do not understand the purpose of all this. Why not: {{=form.custom.begin}} {{#!-- Add header here --}} {{=form.element['table']}} {{#!-- Add footer here --}} {{=DIV(form.custom.end[1] # hidden field}} {{#!-- Add submit/cancel buttons here - you may even not use the submit variable --}}

[web2py] Re: default/user.html and custom form

2012-05-05 Thread Annet
@ Cèdric, Thanks for your reply. @Massimo, Your reply is what I'd hoped for. Thanks. Kind regards, Annet

[web2py] Re: default/user.html and custom form

2012-05-04 Thread Cédric Mayer
As I needed to build my own submit buttons, or add my own widgets, I use the following function to split a SQLFORM: import re def expurgate_form(web2py_form): ''' Deletes surrounding form tag, and submit row. ''' regexp_opening_tag = re.compile(^[^]*) regexp_closing_tag =

[web2py] Re: Default user.html

2011-05-30 Thread Dwayne Blind
Thank you very much. Dwayne On 30 mai, 02:18, Massimo Di Pierro massimo.dipie...@gmail.com wrote: You can disable actions if you use third party authentication. On May 29, 6:19 pm, Dwayne Blind dwaynebl...@gmail.com wrote: Hi, The following lines are usual : div id=web2py_user_form

[web2py] Re: Default user.html

2011-05-29 Thread Massimo Di Pierro
You can disable actions if you use third party authentication. On May 29, 6:19 pm, Dwayne Blind dwaynebl...@gmail.com wrote: Hi, The following lines are usual : div id=web2py_user_form {{=form}} {{if request.args(0)=='login':}} {{if not 'register' in auth.settings.actions_disabled:}}   #