diff options
Diffstat (limited to 'modules/test.py')
| -rwxr-xr-x | modules/test.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/test.py b/modules/test.py index 7783b4e..eb2e3f4 100755 --- a/modules/test.py +++ b/modules/test.py @@ -1,26 +1,17 @@ #!/usr/bin/python - from codes import * from modules import web_svc - - class Test(web_svc.WebSvc): def __init__(self): self.methods = { - "test_add": self.add, - "test_blippy": self.blippy, + "test_add": self.add } web_svc.WebSvc.__init__(self) def add(self, numb1, numb2): - return success(int(numb1) + int(numb2)) - - def blippy(self, foo): - fh = open("/tmp/blippy","w+") - fh.close() - return success(foo) + return numb1 + numb2 methods = Test() register_rpc = methods.register_rpc |
