Results 1 to 2 of 2

Thread: Python servant implementing multiple facets

  1. #1
    tctimmeh is offline Registered User
    Name: Tim Court
    Organization: Enbridge Pipelines
    Project: Historical Data Retriever
    Join Date
    Dec 2007
    Posts
    21

    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:

    Code:
    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?

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-26-2010, 07:27 AM
  2. Python servant object cloning policy
    By spsoni in forum Help Center
    Replies: 2
    Last Post: 10-07-2008, 07:53 PM
  3. Problem with "addWithUUID", while implementing the facets
    By phanikommula in forum Help Center
    Replies: 6
    Last Post: 08-18-2006, 07:36 PM
  4. Problem with "addWithUUID", while implementing the facets
    By phanikommula in forum Help Center
    Replies: 1
    Last Post: 08-09-2006, 04:16 AM
  5. facets versus CORBA multiple inheritance
    By seth.piezas in forum Help Center
    Replies: 2
    Last Post: 02-15-2005, 07:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •