misc: remove alternate forms root directory (#72821)

This commit is contained in:
Frédéric Péters 2022-12-29 10:13:43 +01:00
parent 6ee40f42cb
commit af815ab7e5
1 changed files with 0 additions and 12 deletions

View File

@ -29,15 +29,3 @@ class AlternateFormPage(OldFormPage):
wcs.forms.root.FormPage = AlternateFormPage
wcs.forms.root.PublicFormStatusPage.form_page_class = AlternateFormPage
wcs.forms.preview.PreviewFormPage.__bases__ = (AlternateFormPage,)
OldFormsRootDirectory = wcs.forms.root.RootDirectory
class AlternateFormsRootDirectory(OldFormsRootDirectory):
def form_list(self, *args, **kwargs):
form_list = OldFormsRootDirectory.form_list(self, *args, **kwargs)
return htmltext(str(form_list).replace('h2>', 'h3>'))
wcs.forms.root.RootDirectory = AlternateFormsRootDirectory