[PATCH] [Wok] Make sure all log messages have required parameters

28 Jun
2016
28 Jun
'16
4:11 p.m.
Signed-off-by: Lucio Correia <luciojhc@linux.vnet.ibm.com> --- src/wok/root.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wok/root.py b/src/wok/root.py index e2b9216..8601b71 100644 --- a/src/wok/root.py +++ b/src/wok/root.py @@ -146,9 +146,12 @@ class WokRoot(Root): self.paths = wok_paths self.domain = 'wok' self.messages = messages - self.log_map = ROOT_REQUESTS self.extends = None + # set user log messages and make sure all parameters are present + self.log_map = ROOT_REQUESTS + self.log_args.update({'username': ''}) + @cherrypy.expose def login(self, *args): method = 'POST' -- 1.9.1
3351
Age (days ago)
3351
Last active (days ago)
1 comments
2 participants
participants (2)
-
Aline Manera
-
Lucio Correia