summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-09-28 00:22:33 +0000
committerMark Spruiell <mes@zeroc.com>2004-09-28 00:22:33 +0000
commitad2fb230f818fa495395f93ef4385f005bd8ac58 (patch)
tree0c05525c37b5d334f88730d2cf6b840ce756bd79 /py/python/Ice.py
parentSun fixes (diff)
downloadice-ad2fb230f818fa495395f93ef4385f005bd8ac58.tar.bz2
ice-ad2fb230f818fa495395f93ef4385f005bd8ac58.tar.xz
ice-ad2fb230f818fa495395f93ef4385f005bd8ac58.zip
make Application abstract
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r--py/python/Ice.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py
index 04feae06c73..506e2d0110a 100644
--- a/py/python/Ice.py
+++ b/py/python/Ice.py
@@ -383,6 +383,10 @@ _previousCallback = None
import signal, traceback
class Application(object):
+ def __init__(self):
+ if type(self) == Application:
+ raise RuntimeError("Ice.Application is an abstract class")
+
def main(self, args, configFile=None):
if Application._communicator:
print args[0] + ": only one instance of the Application class can be used"