From 5d775d64bdec554b9842823bd1c46263210425fd Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Tue, 1 Mar 2016 10:42:40 +0100 Subject: 1. multithreading: - Enable multiprocessing for api_server - Enable mutrithreading for html_server 2. py: - extract pcilib->py bases from pcilib->py functions - add api for interact directly with pcilib->py without pcilib context. 3. pcipywrap - Add scripts handling. --- html_server/html_server.py | 3 +-- html_server/templates/base.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'html_server') diff --git a/html_server/html_server.py b/html_server/html_server.py index dba24e9..0d4bca8 100644 --- a/html_server/html_server.py +++ b/html_server/html_server.py @@ -137,7 +137,6 @@ def get_registers_list(): value = dict() for reg in reg_list: - print reg try: value[reg['name']] = pcilib.read_register(str(reg['name']), str(reg['bank'])) @@ -212,4 +211,4 @@ if __name__ == "__main__": pcilib = pcipywrap.Pcipywrap(device, model) pcipywrap.__redirect_logs_to_exeption() - app.run(host = HOST_NAME, port = PORT_NUMBER) + app.run(host = HOST_NAME, port = PORT_NUMBER, threaded=True) diff --git a/html_server/templates/base.html b/html_server/templates/base.html index 39f8d00..0e3aea8 100644 --- a/html_server/templates/base.html +++ b/html_server/templates/base.html @@ -187,7 +187,7 @@ } .infoTable { - padding: 5px; + padding: 2px; border: 1px solid #aaa; line-height: 28px; -- cgit v1.2.3