web/form.py
branchtls-sprint
changeset 1050 c9815bef16d7
parent 1049 f8e92c2f3bef
child 1053 e4d965b5ca37
equal deleted inserted replaced
1049:f8e92c2f3bef 1050:c9815bef16d7
  1073         else:
  1073         else:
  1074             enctype = 'application/x-www-form-urlencoded'
  1074             enctype = 'application/x-www-form-urlencoded'
  1075         tag = ('<form action="%s" method="post" id="%s" enctype="%s"' % (
  1075         tag = ('<form action="%s" method="post" id="%s" enctype="%s"' % (
  1076             html_escape(form.action or '#'), form.domid, enctype))
  1076             html_escape(form.action or '#'), form.domid, enctype))
  1077         if form.onsubmit:
  1077         if form.onsubmit:
  1078             tag += ' onsubmit="%s"' % html_escape(form.onsubmit)
  1078             tag += ' onsubmit="%s"' % html_escape(form.onsubmit % form.__dict__)
  1079         if form.cssstyle:
  1079         if form.cssstyle:
  1080             tag += ' style="%s"' % html_escape(form.cssstyle)
  1080             tag += ' style="%s"' % html_escape(form.cssstyle)
  1081         if form.cssclass:
  1081         if form.cssclass:
  1082             tag += ' class="%s"' % html_escape(form.cssclass)
  1082             tag += ' class="%s"' % html_escape(form.cssclass)
  1083         if form.cwtarget:
  1083         if form.cwtarget: