From 0fb08748e5285e5d4adc6135eec8889887a63299 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 14 Jun 2015 22:31:48 +0100 Subject: use a python package instead of just modules The package is contained in the CAO/ folder. server.py is still at the root of the repository though. Signed-off-by: Olivier Gayot --- CAO_Status.py | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 CAO_Status.py (limited to 'CAO_Status.py') diff --git a/CAO_Status.py b/CAO_Status.py deleted file mode 100644 index 782a0b4..0000000 --- a/CAO_Status.py +++ /dev/null @@ -1,7 +0,0 @@ -import json - -def cao_error(msg, code=255): - return json.dumps({'type': 'response', 'content': {'status': code, 'info': msg}}) - -def cao_success(obj): - return json.dumps({'type': 'response', 'content': {'status': 0, 'result': obj}}) -- cgit v1.2.3