Projet

Général

Profil

0001-misc-don-t-take-over-contact-help-accessibility-unle.patch

Frédéric Péters, 10 juillet 2019 10:52

Télécharger (1,41 ko)

Voir les différences:

Subject: [PATCH] misc: don't take over contact/help/accessibility unless
 defined (#34717)

 auquotidien/modules/root.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
auquotidien/modules/root.py
761 761
            'saml', 'register', 'ident', 'afterjobs',
762 762
            ('informations-editeur', 'informations_editeur'),
763 763
            ('announces', 'announces_dir'),
764
            'accessibility', 'contact', 'help',
765 764
            'myspace', 'services', 'agenda', 'categories', 'user',
766 765
            ('tmp-upload', 'tmp_upload'), 'json', '__version__',
767 766
            'themes', 'pages', 'payment', 'invoices', 'roles',
......
871 870
            # it will get caught in _q_traverse that will redirect it to an
872 871
            # URL embedding the category
873 872

  
873
        if component in ('accessibility', 'contact', 'help'):
874
            if TextsDirectory.get_html_text('aq-' + component):
875
                return getattr(self, component)()
876

  
874 877
        return None
875 878

  
876 879
    def json(self):
877
-