From c8a9c04141ef25a59b6ce470f8bd2d374b9172e3 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Wed, 6 Aug 2014 14:29:18 +0200 Subject: [PATCH] [gen] Log: prepend the user login. --- gen/mixins/__init__.py | 2 +- gen/ui/appy.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/mixins/__init__.py b/gen/mixins/__init__.py index 41646f4..1457759 100644 --- a/gen/mixins/__init__.py +++ b/gen/mixins/__init__.py @@ -563,7 +563,7 @@ class BaseMixin: if type == 'warning': logMethod = logger.warn elif type == 'error': logMethod = logger.error else: logMethod = logger.info - logMethod(msg) + logMethod('%s: %s' % (self.getTool().getUser().login, msg)) def do(self): '''Performs some action from the user interface.''' diff --git a/gen/ui/appy.css b/gen/ui/appy.css index a289421..8f43360 100644 --- a/gen/ui/appy.css +++ b/gen/ui/appy.css @@ -69,6 +69,7 @@ input.buttonSmall { width: 100px !important; font-size: 85%; height: 18px; .xhtml img { margin-right: 5px } .xhtml p { margin: 3px 0 7px 0 } .clickable { cursor: pointer } +.help { cursor: help } .refLink { font-style: italic; padding-left: 5px; font-size: 90%; color: grey } .buttons { margin-left: 4px } .message { position: absolute; top: -40px; left: 50%; font-size: 90%;