MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / print_form

Function print_form

tools/python-3.11.9-amd64/Lib/cgi.py:917–931  ·  view source on GitHub ↗

Dump the contents of a form as HTML.

(form)

Source from the content-addressed store, hash-verified

915 print()
916
917def print_form(form):
918 """Dump the contents of a form as HTML."""
919 keys = sorted(form.keys())
920 print()
921 print("<H3>Form Contents:</H3>")
922 if not keys:
923 print("<P>No form fields.")
924 print("<DL>")
925 for key in keys:
926 print("<DT>" + html.escape(key) + ":", end=' ')
927 value = form[key]
928 print("<i>" + html.escape(repr(type(value))) + "</i>")
929 print("<DD>" + html.escape(repr(value)))
930 print("</DL>")
931 print()
932
933def print_directory():
934 """Dump the current directory as HTML."""

Callers 1

testFunction · 0.85

Calls 5

sortedFunction · 0.85
printFunction · 0.50
typeClass · 0.50
keysMethod · 0.45
escapeMethod · 0.45

Tested by

no test coverage detected