Revision af815ab7
Added by Frédéric Péters over 1 year ago
auquotidien/modules/formpage.py | ||
---|---|---|
29 | 29 |
wcs.forms.root.FormPage = AlternateFormPage |
30 | 30 |
wcs.forms.root.PublicFormStatusPage.form_page_class = AlternateFormPage |
31 | 31 |
wcs.forms.preview.PreviewFormPage.__bases__ = (AlternateFormPage,) |
32 |
|
|
33 |
|
|
34 |
OldFormsRootDirectory = wcs.forms.root.RootDirectory |
|
35 |
|
|
36 |
|
|
37 |
class AlternateFormsRootDirectory(OldFormsRootDirectory): |
|
38 |
def form_list(self, *args, **kwargs): |
|
39 |
form_list = OldFormsRootDirectory.form_list(self, *args, **kwargs) |
|
40 |
return htmltext(str(form_list).replace('h2>', 'h3>')) |
|
41 |
|
|
42 |
|
|
43 |
wcs.forms.root.RootDirectory = AlternateFormsRootDirectory |
Also available in: Unified diff
misc: remove alternate forms root directory (#72821)