diff options
author | Vasilii Chernov <vchernov@inr.ru> | 2016-03-01 10:42:40 +0100 |
---|---|---|
committer | Vasilii Chernov <vchernov@inr.ru> | 2016-03-01 10:42:40 +0100 |
commit | 5d775d64bdec554b9842823bd1c46263210425fd (patch) | |
tree | cb1da12066687273f7dccace7aba4ee1ff2ba25c /html_server | |
parent | 0e584d07a0776454fd5487b7d23407c0624b56c2 (diff) | |
download | pcitool-5d775d64bdec554b9842823bd1c46263210425fd.tar.gz pcitool-5d775d64bdec554b9842823bd1c46263210425fd.tar.bz2 pcitool-5d775d64bdec554b9842823bd1c46263210425fd.tar.xz pcitool-5d775d64bdec554b9842823bd1c46263210425fd.zip |
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.
Diffstat (limited to 'html_server')
-rw-r--r-- | html_server/html_server.py | 3 | ||||
-rw-r--r-- | html_server/templates/base.html | 2 |
2 files changed, 2 insertions, 3 deletions
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; |