summaryrefslogtreecommitdiffstats
path: root/modules/test.py
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2007-09-20 21:28:51 -0400
committerSeth Vidal <skvidal@fedoraproject.org>2007-09-20 21:28:51 -0400
commit8d168259f1cb0af25a7ee342bd1c32cd5bfdd424 (patch)
tree9c1d80b6da18a902b03ba7b21ec6bd0a60aabbfa /modules/test.py
parenta83c4bcc40aae7c8b8058d831667ee1e07a969dc (diff)
parent98010f591948fb4bf297c1c0c32def42f766edca (diff)
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/func
* 'master' of ssh://git.fedoraproject.org/git/hosted/func: (27 commits) just a friendly reminder we are not vf_server, change I!*N domain Add virt module. Add test code for virt. add a very simple, very dumb commandline client: Remove messages.pot from po dir, since its automatically generated Get rid of extra / in module loading error pychecker cleanups Add po dir to git Prevent XMLRPC server from printing to console. Catch FuncException when the config file is missing and exit gracefully Implement a quickie service control module Removing VF items + misc cleanup Clean up some speclint warnings Baseobj bites the dust. remove all the --debug "try to run from the src tree" crap debug spew cleanup to protect the unwashed masses from foo poisoning fix up config_data to use ConfigParser correctly attempt to let us run with --debug flag to run from src checkout attempts at letting us run from a installed, or local modules ...
Diffstat (limited to 'modules/test.py')
-rwxr-xr-xmodules/test.py13
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