Re: [Orbit-python-list] two questions
Status: Inactive
Brought to you by:
tack
|
From: Jason T. <ta...@au...> - 2002-02-12 13:01:37
|
> I think you can, simply by having something like:
> IDL class -> base class -> your class
Not quite. You're right about mix-ins though. You want something like
this.
module Example {
interface A {
void one();
};
interface B : A {
void two();
};
};
import CORBA
import Example, Example__POA
class A(Example__POA.A):
def one(self):
print "A::one"
class B(Example__POA.B, A):
def one(self):
A.one(self)
print "B::one"
def two(self):
print "B::two"
Cheers,
Jason.
--
Academic Computing Support Specialist
Algoma University College
Sault Ste. Marie, Ontario
705-949-2301 x330 Personal Home Page
http://www.auc.ca http://sault.org
|