[Kimchi-devel] [PATCH 2/3] Update server configuration to expose jquery.base64.js
Aline Manera
alinefm at linux.vnet.ibm.com
Thu Sep 3 12:52:55 UTC 2015
Also update the tests accordingly.
Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
src/kimchi/config.py.in | 6 ++++++
tests/test_config.py.in | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
index 8cc63e7..7ca1a1f 100644
--- a/src/kimchi/config.py.in
+++ b/src/kimchi/config.py.in
@@ -229,6 +229,12 @@ class KimchiConfig(dict):
'tools.staticfile.filename': paths.spice_css_file,
'tools.nocache.on': True,
},
+ '/base64/jquery.base64.js': {
+ 'tools.staticfile.on': True,
+ 'tools.staticfile.filename': '%s/base64/jquery.base64.js' %
+ paths.ui_dir,
+ 'tools.nocache.on': True,
+ },
'/kimchi-ui.html': {
'tools.kimchiauth.on': True
},
diff --git a/tests/test_config.py.in b/tests/test_config.py.in
index 6123f66..96a339d 100644
--- a/tests/test_config.py.in
+++ b/tests/test_config.py.in
@@ -128,6 +128,12 @@ class ConfigTests(unittest.TestCase):
'tools.staticfile.filename': paths.spice_css_file,
'tools.nocache.on': True,
},
+ '/base64/jquery.base64.js': {
+ 'tools.staticfile.on': True,
+ 'tools.staticfile.filename': '%s/base64/jquery.base64.js' %
+ paths.ui_dir,
+ 'tools.nocache.on': True,
+ },
'/kimchi-ui.html': {
'tools.kimchiauth.on': True
},
--
2.1.0
More information about the Kimchi-devel
mailing list