From 17f0e5343a0e2e39660f5ee228a0c57a8dc7ade4 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 20 Sep 2007 18:05:48 -0400 Subject: Baseobj bites the dust. --- modules/test.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'modules/test.py') 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 -- cgit