From 0002a3f26ccafbab71964d219f2181944cb7ba78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 29 Jun 2016 08:50:23 +0200 Subject: [PATCH] general: serve all static files from /static/ (#11582) --- extra/modules/root.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extra/modules/root.py b/extra/modules/root.py index c067502..895184b 100644 --- a/extra/modules/root.py +++ b/extra/modules/root.py @@ -769,7 +769,7 @@ class AlternateRootDirectory(OldRootDirectory): ('tmp-upload', 'tmp_upload'), 'json', '__version__', 'themes', 'pages', 'payment', 'invoices', 'accesscode', 'roles', 'api', 'code', 'fargo', 'tryauth', 'auth', 'preview', - ('reload-top', 'reload_top'), + ('reload-top', 'reload_top'), 'static', ('i18n.js', 'i18n_js')] admin = admin.AdminRootDirectory() @@ -821,9 +821,6 @@ class AlternateRootDirectory(OldRootDirectory): if not self.backoffice: self.backoffice = get_publisher().backoffice_directory_class() - if path and path[0] in self.static_directories: - return self.serve_statics(path) - try: return Directory._q_traverse(self, path) except errors.TraversalError, e: -- 2.8.1