summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-02 19:56:48 +0300
committermakkalot <makkalot@gmail.com>2008-06-02 19:56:48 +0300
commit1b4b73ed260c72ebeb0168c4a649e4f02eeb8dde (patch)
tree8d938b02a07ef7fa0ba0bb0e3e81bf53e9e6c7aa /func
parent871aae17edf1f0e45ad8075016bde1ba5f68e969 (diff)
downloadthird_party-func-1b4b73ed260c72ebeb0168c4a649e4f02eeb8dde.tar.gz
third_party-func-1b4b73ed260c72ebeb0168c4a649e4f02eeb8dde.tar.xz
third_party-func-1b4b73ed260c72ebeb0168c4a649e4f02eeb8dde.zip
arghh we can not use private methods so make public that register thing
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/func_module.py6
-rw-r--r--func/minion/modules/service.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py
index cfd7438..724a27b 100644
--- a/func/minion/modules/func_module.py
+++ b/func/minion/modules/func_module.py
@@ -77,7 +77,7 @@ class FuncModule(object):
def __is_public_valid_method(self,attr):
if inspect.ismethod(getattr(self, attr)) and attr[0] != '_' and\
- attr != 'register_rpc':
+ attr != 'register_rpc' and attr!='register_method_args':
return True
return False
@@ -89,7 +89,7 @@ class FuncModule(object):
@return : dict with args or Raise Exception if something wrong
happens
"""
- tmp_arg_dict = self.__register_method_args()
+ tmp_arg_dict = self.register_method_args()
#if it is not implemeted then return empty stuff
if not tmp_arg_dict:
@@ -107,7 +107,7 @@ class FuncModule(object):
return tmp_arg_dict
- def __register_method_args(self):
+ def register_method_args(self):
"""
That is the method where users should override in their
modules according to be able to send their method arguments
diff --git a/func/minion/modules/service.py b/func/minion/modules/service.py
index a4e8bea..e615e1b 100644
--- a/func/minion/modules/service.py
+++ b/func/minion/modules/service.py
@@ -87,7 +87,7 @@ class Service(func_module.FuncModule):
results.append((tokens[0], tokens[-1].replace("...","")))
return results
- def __register_method_args(self):
+ def register_method_args(self):
"""
Implementing the argument getter
"""