Archived

This forum has been archived. Please start a new discussion on GitHub.

Python servant implementing multiple facets

I'm having some trouble with a bit of python Ice server code. I want to have a python servant class that implements many Ice interfaces like so:
class MyServant(Intf1, Intf2, Intf3):
  ... etc

Clients can connect to the servant but checkedCast on the proxies only succeeds for the first interface listed in MyServant's inheritance list. Is this a limitation of Ice, Ice-python, or am I doing something wrong?

Comments

  • mes
    mes California
    Hi Tim,

    Ice servants are limited to implementing only one Slice interface. One alternative is to define a (private) Slice interface that derives from all of the desired interfaces and have your servant implement the private interface.

    Take care,
    Mark