The root configuration ('/') is common piece for every plugin, so move
it to common place (PluginConfig) so the plugin only needs to define its specific APIs
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/wok/config.py.in | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/wok/config.py.in b/src/wok/config.py.in
index 65f6b6c..1b0e7bd 100644
--- a/src/wok/config.py.in
+++ b/src/wok/config.py.in
@@ -230,6 +230,18 @@ class PluginConfig(dict):
def __init__(self, plugin_name):
super(PluginConfig, self).__init__(self)
plugin_config = {
+ '/': {
+ 'tools.trailing_slash.on': False,
+ 'request.methods_with_bodies': ('POST', 'PUT'),
+ 'tools.nocache.on': True,
+ 'tools.proxy.on': True,
+ 'tools.sessions.on': True,
+ 'tools.sessions.name': 'wok',
+ 'tools.sessions.secure': True,
+ 'tools.sessions.httponly': True,
+ 'tools.sessions.locking': 'explicit',
+ 'tools.sessions.storage_type': 'ram'
+ },
'/ui/config/tab-ext.xml': {
'tools.staticfile.on': True,
'tools.staticfile.filename':
--
2.5.5