Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-14-2008
tctimmeh tctimmeh is offline
Registered User
 
Name: Tim Court
Organization: Enbridge Pipelines
Project: IPC replacement
 
Join Date: Dec 2007
Posts: 19
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?
Reply With Quote
  #2 (permalink)  
Old 05-14-2008
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 970
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding ice_staticId() to Python servant classes blair Comments 3 05-06-2008 01:47 PM
Core dump in Python servant locator blair Patches 2 06-26-2007 12:29 PM
Problem with "addWithUUID", while implementing the facets phanikommula Help Center 6 08-18-2006 07:36 PM
Problem with "addWithUUID", while implementing the facets phanikommula Help Center 1 08-09-2006 04:16 AM
facets versus CORBA multiple inheritance seth.piezas Help Center 2 02-15-2005 07:14 PM


All times are GMT -4. The time now is 07:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.