Public Member Functions | |
def | __init__ |
def | convert |
def | parse |
def | rpcHandler |
def | split |
Data Fields | |
funcs | |
lastValue | |
name |
At creation it receives a lost of callable objects wo which the calls will be passed. It creates a single string DIM RPC and accepts a string with the format: 'function_name/par1_name=par1_value1,par1_value2/par2_name=par2_value/.../' or 'function_name/par1_value,par2_value/.../' for possitional arguments The appropiate function is called with the appropiate parameters and the result is returned in the same format. The special characters (',', '=' and '/') must be excaped. Identifiers must contain alfanumeric characters plus the '_' and '-' chars. It makes the assumption that the python functions will return always a tuple in the format (STATUSCODE, RESULTS). All the return parameters are converted to a string and are returned to the client.
Definition at line 44 of file __init__.py.
def __init__ | ( | self, | ||
funcs, | ||||
rpcName = 'testRPC' | ||||
) |
Definition at line 45 of file __init__.py.
def convert | ( | self, | ||
args | ||||
) |
Definition at line 60 of file __init__.py.
def parse | ( | self, | ||
s | ||||
) |
Definition at line 93 of file __init__.py.
def rpcHandler | ( | self | ) |
Definition at line 109 of file __init__.py.
def split | ( | self, | ||
s, | ||||
sep, | ||||
exc = '\\' | ||||
) |
Definition at line 72 of file __init__.py.
Definition at line 48 of file __init__.py.
Definition at line 47 of file __init__.py.
Definition at line 49 of file __init__.py.