xmlrcp register classes
Brian Quinlan
brian at sweetapp.com
Mon Sep 5 12:08:48 EDT 2005
Sergio Rua wrote:
> Server = SimpleXMLRPCServer (('127.0.0.1',8080))
>
> Server.register_instance(MyClass1())
> Server.register_instance(MyClass2())
> Server.register_instance(MyClass3())
>
> What is seems to happen is that only the last class I register it is the
> only one being exported. How can I register all the classes? Thanks.
class MyCombinedClass(MyClass1, MyClass2, MyClass3):
pass
Server.register_instance(MyCombinedClass())
Cheers,
Brian
More information about the Python-list
mailing list