From: Daniel Henrique Barboza <dhbarboza82(a)gmail.com>
v2:
- fixing the real error instead of putting an 'if' for Ginger
Recent WoK changes broke Ginger loading:
Failed to import subnodes for plugin plugins.ginger.Ginger, error: Class
plugins.ginger.control.sub_nodes can not be imported, error: No module named control
This patch fixes it.
Daniel Henrique Barboza (1):
Fixing loading of plug-ins without 'sub_nodes'
src/wok/server.py | 1 -
1 file changed, 1 deletion(-)
--
2.5.0
Show replies by date
From: Daniel Henrique Barboza <dhbarboza82(a)gmail.com>
Recent WoK changes were made considering that all WoK plug-ins
have the control modules in a dir named 'control', but
Ginger, for historical/unknown reasons, uses the dir
'controls'. The result is that WoK became unable of loading
Ginger because the code was executing a 'continue' in the
'for' loop, preventing the loading of plug-in at all.
This patch amends it.
Signed-off-by: Daniel Henrique Barboza <dhbarboza82(a)gmail.com>
---
src/wok/server.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/wok/server.py b/src/wok/server.py
index 4fd380c..c2f6c65 100644
--- a/src/wok/server.py
+++ b/src/wok/server.py
@@ -177,7 +177,6 @@ class Server(object):
"Failed to import subnodes for plugin %s, "
"error: %s" % (plugin_class, e.message)
)
- continue
urlSubNodes = {}
for ident, node in sub_nodes.items():
--
2.5.0
Applied. Thanks.
Regards,
Aline Manera