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.
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 --}}
@ Cèdric,
Thanks for your reply.
@Massimo,
Your reply is what I'd hoped for. Thanks.
Kind regards,
Annet
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 =
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
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:}} #
6 matches
Mail list logo