this is what I did (re-wrote Form.render)
I added rndr which is a a storage (can be dict as well) which can be
overridden easily by a programmer.
here is a rndr which keeps web.py original form structure
rndr = Storage({
'container': '<table>%s</table>',
'label': ' <tr><th><label for="%s">%s</label></th>'
'field': '<td>%s</td>'
'note': '<td id="note_%s">%s</td></tr>\n'
})
def render (Self)
out = ''
for i in self.inputs:
if not isinstance(i, Hidden):
out += rndr.label % (i.id, i.description)
out += rndr.field % (i.pre+i.render()+i.post
out += rndr.note % (i.id, self.rendernote(i.note))
else:
out += i.pre+i.render()+i.post
out = self.rendernote(self.note) + rndr.container % out
return out
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---