Projet

Général

Profil

« Précédent | Suivant » 

Révision 0002a3f2

Ajouté par Frédéric Péters il y a presque 8 ans

general: serve all static files from /static/ (#11582)

Voir les différences:

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:

Formats disponibles : Unified diff