On Feb 7, 2010, at 2:06 PM, mr.freeze wrote:

> I hate this too: form[0][-1][1]. I have a pending patch that will
> allow you to grab parent and sibling elements so you can do:
>>>> form = SQLFORM(db.whatever)
>>>> submit = form.element(_type='submit')
>>>> submit.parent.append(INPUT(_type='submit',_value='Cancel'))
> 
> A little more verbose but human readable and appending the button will
> stay relative to where the submit button is.
> 
> Massimo, have you had a chance to look at this?

That would be a big improvement, yes.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to