So, I was using form.py and couldn't find a way to use a input without
getting the label entry. I figure I could use CSS to change the
visibility of the "label" element, but this
def render(self):
out = ''
out += self.rendernote(self.note)
out += '<table>\n'
for i in self.inputs:
if i.description != None:
out += ' <tr><th><label for="%s">%s</label></th>' %
(i.id, i.description)
else:
out += ' <tr>'
out += "<td>"+i.pre+i.render()+i.post+"</td>"
out += '<td id="note_%s">%s</td></tr>\n' % (i.id,
self.rendernote(i.note))
out += "</table>"
return out
seemed so much quicker, I wondered why you would NOT want to do this.
Thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---