The patch by Mr Freeze is in. On Feb 7, 4:27 pm, mdipierro <[email protected]> wrote: > The patch will be in soon. ;-) > > On Feb 7, 4:18 pm, Jonathan Lundell <[email protected]> wrote: > > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

