summaryrefslogtreecommitdiff
path: root/rpc/__main__.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 02:49:46 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 02:49:46 +0200
commite05904f2e992ce3184952a8e569d9c28d85d68de (patch)
tree50c4af17d282384be4cc34a0adfc6dc823fc3261 /rpc/__main__.py
parent135fde231646f8f8838cdf16ddb0bc3ad2e94d3a (diff)
basic css for form elements
Diffstat (limited to 'rpc/__main__.py')
-rw-r--r--rpc/__main__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/rpc/__main__.py b/rpc/__main__.py
index 894f748..80588f2 100644
--- a/rpc/__main__.py
+++ b/rpc/__main__.py
@@ -1,8 +1,11 @@
from rpc import CortexRPC
if __name__ == '__main__':
- def log_param(key, value):
- print("log param. {}: {}".format(key, value))
+ def get_params(key, value):
+ print('get params.')
+ return 'test'
+ def set_param(key, value):
+ print('log param. {}: {}'.format(key, value))
# this will block
- rpc = CortexRPC(log_param)
+ rpc = CortexRPC(get_params, set_param)