From c79d43273769d88f7129a3d53c80b85a6dc1946c Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Thu, 3 Mar 2016 15:38:32 +0100 Subject: 1. Pcipywrap: add persistent locking wrappings 2. html-server: - add scripts tab - change tab view to jQuery tabs --- pyserver/scripts/test_script.py | 4 ++-- pyserver/scripts/test_script2.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pyserver/scripts') diff --git a/pyserver/scripts/test_script.py b/pyserver/scripts/test_script.py index 8f236e9..fa0864c 100644 --- a/pyserver/scripts/test_script.py +++ b/pyserver/scripts/test_script.py @@ -2,9 +2,9 @@ import sys if sys.version_info >= (3,0): import binascii -def run(ctx, inpt): +def run(ctx, input): if sys.version_info >= (3,0): return binascii.a2b_uu('111') else: - return bytearray('111') + return bytearray(str(input) +'11\0\1\n') diff --git a/pyserver/scripts/test_script2.py b/pyserver/scripts/test_script2.py index 16e4adb..a961493 100644 --- a/pyserver/scripts/test_script2.py +++ b/pyserver/scripts/test_script2.py @@ -1,4 +1,4 @@ description='this is a test script' -def run(ctx, inpt): +def run(ctx, input): return ctx.get_registers_list(); -- cgit v1.2.3