0001-misc-remove-alternate-forms-root-directory-72821.patch
auquotidien/modules/formpage.py | ||
---|---|---|
31 | 31 |
wcs.forms.root.FormPage = AlternateFormPage |
32 | 32 |
wcs.forms.root.PublicFormStatusPage.form_page_class = AlternateFormPage |
33 | 33 |
wcs.forms.preview.PreviewFormPage.__bases__ = (AlternateFormPage,) |
34 | ||
35 | ||
36 |
OldFormsRootDirectory = wcs.forms.root.RootDirectory |
|
37 | ||
38 | ||
39 |
class AlternateFormsRootDirectory(OldFormsRootDirectory): |
|
40 |
def form_list(self, *args, **kwargs): |
|
41 |
form_list = OldFormsRootDirectory.form_list(self, *args, **kwargs) |
|
42 |
return htmltext(str(form_list).replace('h2>', 'h3>')) |
|
43 | ||
44 | ||
45 |
wcs.forms.root.RootDirectory = AlternateFormsRootDirectory |
|
46 |
- |