Re: SimpleRPCServer

2005-04-03 Thread robin
Skip Montanaro <[EMAIL PROTECTED]> wrote: >First, from my reading of SimpleXMLRPCServer, I don't think _dispatch() >belongs at that level. It belongs in the request handler class or in a >separate dispatcher class, depending on what version of Python you're using. Quite so. As a variant I just u

Re: SimpleRPCServer

2005-03-25 Thread Skip Montanaro
Esben> What i don't know is how to the client ip. I would think I should Esben> override the _marshalled_dispatch method but I can't quite grasp Esben> it all. First, from my reading of SimpleXMLRPCServer, I don't think _dispatch() belongs at that level. It belongs in the request han

SimpleRPCServer

2005-03-25 Thread Esben Pedersen
I am trying to restrict some of the methods available by RPC to whether the user is connected through a ssh-tunnel eg. connecting from localhost. class UserRPC: '''Methods available to users''' pass class AdminRPC(UserRPC): '''Methods available only when connecting from localhost'''