summaryrefslogtreecommitdiff
path: root/py/test/Ice/inheritance/Server.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-09-01 22:55:22 +0000
committerMark Spruiell <mes@zeroc.com>2004-09-01 22:55:22 +0000
commitc8e248c5452923f4f4692ebe6f142d59d4172ff4 (patch)
tree3c28c5c58edba2cab0288e90f18cff810c2ae05d /py/test/Ice/inheritance/Server.py
parentAdded missing .depend (diff)
downloadice-c8e248c5452923f4f4692ebe6f142d59d4172ff4.tar.bz2
ice-c8e248c5452923f4f4692ebe6f142d59d4172ff4.tar.xz
ice-c8e248c5452923f4f4692ebe6f142d59d4172ff4.zip
global definition fixes for tests & demos cleaning up translator adding
support for dynamically loading Slice files modifying tests to dynamically load Slice
Diffstat (limited to 'py/test/Ice/inheritance/Server.py')
-rw-r--r--py/test/Ice/inheritance/Server.py39
1 files changed, 21 insertions, 18 deletions
diff --git a/py/test/Ice/inheritance/Server.py b/py/test/Ice/inheritance/Server.py
index 16d6b67f08f..a0f03b93d68 100644
--- a/py/test/Ice/inheritance/Server.py
+++ b/py/test/Ice/inheritance/Server.py
@@ -7,55 +7,58 @@
#
# **********************************************************************
-import sys, Ice, Test, MA, MB, _Top
+import sys, Ice
+
+Ice.loadSlice('Test.ice')
+import Test
def test(b):
if not b:
raise RuntimeError('test assertion failed')
-class CAI(MA.CA):
+class CAI(Test.MA.CA):
def caop(self, p, current=None):
return p
-class CBI(MB.CB, CAI):
+class CBI(Test.MB.CB, CAI):
def cbop(self, p, current=None):
return p
-class CCI(MA.CC, CBI):
+class CCI(Test.MA.CC, CBI):
def ccop(self, p, current=None):
return p
-class IAI(MA.IA):
+class IAI(Test.MA.IA):
def iaop(self, p, current=None):
return p
-class IB1I(MB.IB1, IAI):
+class IB1I(Test.MB.IB1, IAI):
def ib1op(self, p, current=None):
return p
-class IB2I(MB.IB2, IAI):
+class IB2I(Test.MB.IB2, IAI):
def ib2op(self, p, current=None):
return p
-class ICI(MA.IC, IB1I, IB2I):
+class ICI(Test.MA.IC, IB1I, IB2I):
def icop(self, p, current=None):
return p
-class CDI(MA.CD, CCI, IB1I, IB2I):
+class CDI(Test.MA.CD, CCI, IB1I, IB2I):
def cdop(self, p, current=None):
return p
-class InitialI(_Top.Initial):
+class InitialI(Test.Initial):
def __init__(self, adapter):
self._adapter = adapter
- self._ca = MA.CAPrx.uncheckedCast(self._adapter.addWithUUID(CAI()))
- self._cb = MB.CBPrx.uncheckedCast(self._adapter.addWithUUID(CBI()))
- self._cc = MA.CCPrx.uncheckedCast(self._adapter.addWithUUID(CCI()))
- self._cd = MA.CDPrx.uncheckedCast(self._adapter.addWithUUID(CDI()))
- self._ia = MA.IAPrx.uncheckedCast(self._adapter.addWithUUID(IAI()))
- self._ib1 = MB.IB1Prx.uncheckedCast(self._adapter.addWithUUID(IB1I()))
- self._ib2 = MB.IB2Prx.uncheckedCast(self._adapter.addWithUUID(IB2I()))
- self._ic = MA.ICPrx.uncheckedCast(self._adapter.addWithUUID(ICI()))
+ self._ca = Test.MA.CAPrx.uncheckedCast(self._adapter.addWithUUID(CAI()))
+ self._cb = Test.MB.CBPrx.uncheckedCast(self._adapter.addWithUUID(CBI()))
+ self._cc = Test.MA.CCPrx.uncheckedCast(self._adapter.addWithUUID(CCI()))
+ self._cd = Test.MA.CDPrx.uncheckedCast(self._adapter.addWithUUID(CDI()))
+ self._ia = Test.MA.IAPrx.uncheckedCast(self._adapter.addWithUUID(IAI()))
+ self._ib1 = Test.MB.IB1Prx.uncheckedCast(self._adapter.addWithUUID(IB1I()))
+ self._ib2 = Test.MB.IB2Prx.uncheckedCast(self._adapter.addWithUUID(IB2I()))
+ self._ic = Test.MA.ICPrx.uncheckedCast(self._adapter.addWithUUID(ICI()))
def shutdown(self, current=None):
self._adapter.getCommunicator().shutdown()