summaryrefslogtreecommitdiff
path: root/python/test/Ice/inheritance/TestI.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2015-03-21 15:35:40 -0230
committerMatthew Newhook <matthew@zeroc.com>2015-03-21 15:35:40 -0230
commit630a37d2fe66f24518299e705f958b571803c522 (patch)
tree969723791bdc4d73bb099c19d45554d0ca241ad9 /python/test/Ice/inheritance/TestI.py
parentFix some README.md markdown formatting (diff)
downloadice-630a37d2fe66f24518299e705f958b571803c522.tar.bz2
ice-630a37d2fe66f24518299e705f958b571803c522.tar.xz
ice-630a37d2fe66f24518299e705f958b571803c522.zip
py -> python
rb -> ruby objc -> objective-c cs -> csharp
Diffstat (limited to 'python/test/Ice/inheritance/TestI.py')
-rw-r--r--python/test/Ice/inheritance/TestI.py80
1 files changed, 80 insertions, 0 deletions
diff --git a/python/test/Ice/inheritance/TestI.py b/python/test/Ice/inheritance/TestI.py
new file mode 100644
index 00000000000..291e1b46414
--- /dev/null
+++ b/python/test/Ice/inheritance/TestI.py
@@ -0,0 +1,80 @@
+# **********************************************************************
+#
+# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+import Ice, Test
+
+class CAI(Test.MA.CA):
+ def caop(self, p, current=None):
+ return p
+
+class CBI(Test.MB.CB, CAI):
+ def cbop(self, p, current=None):
+ return p
+
+class CCI(Test.MA.CC, CBI):
+ def ccop(self, p, current=None):
+ return p
+
+class IAI(Test.MA.IA):
+ def iaop(self, p, current=None):
+ return p
+
+class IB1I(Test.MB.IB1, IAI):
+ def ib1op(self, p, current=None):
+ return p
+
+class IB2I(Test.MB.IB2, IAI):
+ def ib2op(self, p, current=None):
+ return p
+
+class ICI(Test.MA.IC, IB1I, IB2I):
+ def icop(self, p, current=None):
+ return p
+
+class CDI(Test.MA.CD, CCI, IB1I, IB2I):
+ def cdop(self, p, current=None):
+ return p
+
+class InitialI(Test.Initial):
+ def __init__(self, adapter):
+ self._ca = Test.MA.CAPrx.uncheckedCast(adapter.addWithUUID(CAI()))
+ self._cb = Test.MB.CBPrx.uncheckedCast(adapter.addWithUUID(CBI()))
+ self._cc = Test.MA.CCPrx.uncheckedCast(adapter.addWithUUID(CCI()))
+ self._cd = Test.MA.CDPrx.uncheckedCast(adapter.addWithUUID(CDI()))
+ self._ia = Test.MA.IAPrx.uncheckedCast(adapter.addWithUUID(IAI()))
+ self._ib1 = Test.MB.IB1Prx.uncheckedCast(adapter.addWithUUID(IB1I()))
+ self._ib2 = Test.MB.IB2Prx.uncheckedCast(adapter.addWithUUID(IB2I()))
+ self._ic = Test.MA.ICPrx.uncheckedCast(adapter.addWithUUID(ICI()))
+
+ def shutdown(self, current=None):
+ current.adapter.getCommunicator().shutdown()
+
+ def caop(self, current=None):
+ return self._ca
+
+ def cbop(self, current=None):
+ return self._cb
+
+ def ccop(self, current=None):
+ return self._cc
+
+ def cdop(self, current=None):
+ return self._cd
+
+ def iaop(self, current=None):
+ return self._ia
+
+ def ib1op(self, current=None):
+ return self._ib1
+
+ def ib2op(self, current=None):
+ return self._ib2
+
+ def icop(self, current=None):
+ return self._ic