Skip to content

Commit

Permalink
remove additional rendernote
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Oct 21, 2008

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 38bc67f commit 1c7cb9b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions web/form.py
Original file line number Diff line number Diff line change
@@ -31,14 +31,9 @@ def render(self):
for i in self.inputs:
out += ' <tr><th><label for="%s">%s</label></th>' % (i.id, net.websafe(i.description))
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

def rendernote(self, note):
if note: return '<strong class="wrong">%s</strong>' % net.websafe(note)
else: return ""

def validates(self, source=None, _validate=True, **kw):
source = source or kw or web.input()
out = True

0 comments on commit 1c7cb9b

Please sign in to comment.