RPCXML hide implementation.

skip at pobox.com skip at pobox.com
Tue Aug 26 07:06:36 EDT 2008


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

    x> Server.register_instance(RpcClass())

Just register the method you want to publish, not the entire instance.

Skip



More information about the Python-list mailing list