Projet

Général

Profil

0001-general-serve-all-static-files-from-static-11582.patch

Frédéric Péters, 29 juin 2016 08:51

Télécharger (1,32 ko)

Voir les différences:

Subject: [PATCH] general: serve all static files from /static/ (#11582)

 extra/modules/root.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
extra/modules/root.py
769 769
            ('tmp-upload', 'tmp_upload'), 'json', '__version__',
770 770
            'themes', 'pages', 'payment', 'invoices', 'accesscode', 'roles',
771 771
            'api', 'code', 'fargo', 'tryauth', 'auth', 'preview',
772
            ('reload-top', 'reload_top'),
772
            ('reload-top', 'reload_top'), 'static',
773 773
            ('i18n.js', 'i18n_js')]
774 774

  
775 775
    admin = admin.AdminRootDirectory()
......
821 821
        if not self.backoffice:
822 822
            self.backoffice = get_publisher().backoffice_directory_class()
823 823

  
824
        if path and path[0] in self.static_directories:
825
            return self.serve_statics(path)
826

  
827 824
        try:
828 825
            return Directory._q_traverse(self, path)
829 826
        except errors.TraversalError, e:
830
-