def showforms(self): """ Pretty-print all of the forms. Include the global form (form elements outside of <form> pairs) as forms[0] iff present. """ forms = self.get_all_forms() for n, f in enumerate(forms): print_form(n, f, OUT)