Signed-off-by: Aline Manera <
ali...@linux.vnet.ibm.com>
---
2 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/
config.py.in b/
config.py.in
index be54f85..52ee96a 100644
--- a/
config.py.in
+++ b/
config.py.in
@@ -1,7 +1,7 @@
#
# Project Ginger Base
#
-# Copyright IBM Corp, 2015-2016
+# Copyright IBM Corp, 2015-2017
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@ import os
import threading
from cherrypy.lib.reprconf import Parser
-from wok.config import CACHEEXPIRES, PluginConfig, PluginPaths
+from wok.config import PluginConfig, PluginPaths
gingerBaseLock = threading.Lock()
@@ -71,26 +71,7 @@ class GingerBaseConfig(PluginConfig):
'tools.staticdir.dir': os.path.join(gingerBasePaths.ui_dir,
'pages/help'),
'tools.nocache.on': True
- },
- '/images': {
- 'tools.staticdir.on': True,
- 'tools.staticdir.dir': os.path.join(gingerBasePaths.ui_dir,
- 'images'),
- 'tools.wokauth.on': False,
- 'tools.nocache.on': False
}
}
- for dirname in ('css', 'js', 'images'):
- custom_config['/' + dirname] = {
- 'tools.staticdir.on': True,
- 'tools.staticdir.dir': os.path.join(gingerBasePaths.ui_dir,
- dirname),
- 'tools.wokauth.on': False,
- 'tools.nocache.on': False}
- if dirname != 'images':
- custom_config['/' + dirname].update({
- 'tools.expires.on': True,
- 'tools.expires.secs': CACHEEXPIRES})
-
self.update(custom_config)
diff --git a/tests/
test_config.py.in b/tests/
test_config.py.in
index 8f09975..50718c0 100644
--- a/tests/
test_config.py.in
+++ b/tests/
test_config.py.in
@@ -1,7 +1,7 @@
#
# Project Ginger Base
#
-# Copyright IBM Corp, 2014-2016
+# Copyright IBM Corp, 2014-2017
#
# Code derived from Project Kimchi
#
@@ -123,6 +123,7 @@ class ConfigTests(unittest.TestCase):
'tools.wokauth.on': False,
'tools.nocache.on': False,
'tools.staticdir.dir': '%s/ui/images' % pluginPrefix,
+ 'tools.staticdir.content_types': {'svg': 'image/svg+xml'},
'tools.staticdir.on': True
},
'/ui/config/tab-ext.xml': {
--
2.9.3