fix attribute error caused by attributes/functions without

_rpcserver_export
This commit is contained in:
Damien Churchill 2008-10-08 11:57:55 +00:00
parent 641c27a90a
commit 2e6dd5b945
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class RPCServer(ThreadingMixIn, SimpleXMLRPCServer.SimpleXMLRPCServer, component
for d in dir(obj):
if d[0] == "_":
continue
if getattr(obj, d)._rpcserver_export:
if getattr(getattr(obj, d), '_rpcserver_export', False):
log.debug("Registering method: %s", name + "." + d)
self.register_function(getattr(obj, d), name + "." + d)