Hi

I'm working recently with XMLRPC for python and It never was so easy.

But I've meet a obstacle. Because python is not giving us any
reasonable encapsulation mechanism, I have problems with hiding  some
part of the implementation.

When class has 2 methods and I want to make rpc private only ONE of
them. I can always use __name. But what in case when I really need to
use those two methods inside other class as a public, but not by RPC

Simple  code:
class RpcClass:
  def one(self): #visible by RPC, available as public for other class
        return "one"
  def two(self): #INVISIBLE by RPC, available as public for other
class
        return "two"

Server.register_instance(RpcClass())

Thanks
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to