Projet

Général

Profil

« Précédent | Suivant » 

Révision af815ab7

Ajouté par Frédéric Péters il y a plus d'un an

misc: remove alternate forms root directory (#72821)

Voir les différences:

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

Formats disponibles : Unified diff