summaryrefslogtreecommitdiffstats
path: root/modules/test.py
blob: eb2e3f441baec98691817cb17bc2864eafea17b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
        }
        web_svc.WebSvc.__init__(self)

    def add(self, numb1, numb2):
        return numb1 + numb2

methods = Test()
register_rpc = methods.register_rpc