By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

xmlrcp register classes

P: n/a
Hello,

I have a structured program with several classes which I would like to
export using a xmlrpc server. I'm doing this

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.

--
Sergio Rua
Sep 5 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Sep 5 '05 #2

P: n/a
Hello,
class MyCombinedClass(MyClass1, MyClass2, MyClass3):
pass

Server.register_instance(MyCombinedClass())


That was easy :) Thanks a lot.

--
Sergio Rua
Sep 5 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.