From b96c8e4457e7d8f8b0a3bc1cd80a698adfe6f0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Mon, 27 Nov 2017 18:09:48 +0100 Subject: [PATCH] Add Logger UIModule --- src/app/templates/module-logger.html | 7 +++++++ src/app/ui_modules/__init__.py | 1 + src/app/ui_modules/logger.py | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 src/app/templates/module-logger.html create mode 100644 src/app/ui_modules/logger.py diff --git a/src/app/templates/module-logger.html b/src/app/templates/module-logger.html new file mode 100644 index 0000000..1490f1f --- /dev/null +++ b/src/app/templates/module-logger.html @@ -0,0 +1,7 @@ +

Logs

+

+   +

+ diff --git a/src/app/ui_modules/__init__.py b/src/app/ui_modules/__init__.py index e69de29..92a2f16 100644 --- a/src/app/ui_modules/__init__.py +++ b/src/app/ui_modules/__init__.py @@ -0,0 +1 @@ +from .logger import Logger diff --git a/src/app/ui_modules/logger.py b/src/app/ui_modules/logger.py new file mode 100644 index 0000000..60b3f1f --- /dev/null +++ b/src/app/ui_modules/logger.py @@ -0,0 +1,6 @@ +from tornado.web import UIModule + + +class Logger(UIModule): + def render(self, anchor_id, *args, **kwargs): + return self.render_string('module-logger.html', anchor_id=anchor_id)