class UserRPC:
'''Methods available to users'''
passclass AdminRPC(UserRPC):
'''Methods available only when connecting from localhost'''
passclass RPCServer(SimpleXMLRPCServer):
def _dispatch(self, method, args):
if user_is_connecting_from_localhost():
return getattr(AdminRPC(), method)(*args)
return getattr(UserRPC(), method)(*args)What i don't know is how to the client ip. I would think I should override the _marshalled_dispatch method but I can't quite grasp it all.
/Esben -- http://mail.python.org/mailman/listinfo/python-list
