MCPcopy Index your code
hub / github.com/webpy/webpy / render

Method render

web/form.py:55–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 return o
54
55 def render(self):
56 out = ""
57 out += self.rendernote(self.note)
58 out += "<table>\n"
59
60 for i in self.inputs:
61 html = (
62 utils.safeunicode(i.pre)
63 + i.render()
64 + self.rendernote(i.note)
65 + utils.safeunicode(i.post)
66 )
67 if i.is_hidden():
68 out += ' <tr style="display: none;"><th></th><td>%s</td></tr>\n' % (
69 html
70 )
71 else:
72 out += f' <tr><th><label for="{net.websafe(i.id)}">{net.websafe(i.description)}</label></th><td>{html}</td></tr>\n'
73 out += "</table>"
74 return out
75
76 def render_css(self):
77 out = []

Callers 4

test_id_escape_issueFunction · 0.95
render_cssMethod · 0.45
templateMethod · 0.45

Calls 2

rendernoteMethod · 0.95
is_hiddenMethod · 0.45

Tested by 2

test_id_escape_issueFunction · 0.76