Notes: to remove all labels from a form, Massimo showed me this trick
...
form_link = form_factory( Field("href"), formname='form_link')
for tr in form_link[0]: del tr[0]
reads:
for tr in form table, delete the first td in the tr.
Select All
Overall:
(0 votes)
Comments (2):
On 2010-01-23 villas said:
Interesting, but more like a quick 'tip' than a full 'slice'. Why not add it Mr Freeze's slice on Modifying Form Elements to keep all this good 'form' stuff in one logical place. Just 2 cts. D
Welcome to web2pyslices.com,
a resource for users of web2py,
a python web framework with a
focus on power and ease of use.
Feel free to peruse the site and
take a slice
or if you're feeling
ambitious, make a slice.
thadeusb
johann.spies
weheh
weheh