Personal wiki notebook (not under development)

Form_submit_page.py 323B

12345678910111213141516
  1. from Tags import Html, Head, Body, Script
  2. class Form_submit_page( Html ):
  3. def __init__( self, form ):
  4. Html.__init__(
  5. self,
  6. Head(),
  7. Body(
  8. form,
  9. Script( # auto-submit the form
  10. u"document.forms[ 0 ].submit();",
  11. type = u"text/javascript",
  12. ),
  13. ),
  14. )