From a433b0073efcbeb2028dceed5105cc40f5936ddf Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Tue, 15 Jan 2008 18:12:35 -0500 Subject: Don't expose FuncModule.register_rpc --- func/minion/modules/func_module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'func/minion/modules/func_module.py') diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py index c911b91..99758f9 100644 --- a/func/minion/modules/func_module.py +++ b/func/minion/modules/func_module.py @@ -49,7 +49,8 @@ class FuncModule(object): # register all methods that don't start with an underscore for attr in dir(self): - if inspect.ismethod(getattr(self, attr)) and attr[0] != '_': + if inspect.ismethod(getattr(self, attr)) and attr[0] != '_' and \ + attr != 'register_rpc': handlers["%s.%s" % (module_name, attr)] = getattr(self, attr) def __list_methods(self): -- cgit