diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
commit | 1126cea5189d035934f98822078f2ae23d9739ec (patch) | |
tree | 759430bdf201db72abddcd9bb83bed6fb034a6d2 /py/demo/IceStorm/clock/Subscriber.py | |
parent | Code cleanup (diff) | |
download | ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2 ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz ice-1126cea5189d035934f98822078f2ae23d9739ec.zip |
Added propertyToProxy
Diffstat (limited to 'py/demo/IceStorm/clock/Subscriber.py')
-rw-r--r-- | py/demo/IceStorm/clock/Subscriber.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/py/demo/IceStorm/clock/Subscriber.py b/py/demo/IceStorm/clock/Subscriber.py index d997a4554f3..bf9bf96e4c8 100644 --- a/py/demo/IceStorm/clock/Subscriber.py +++ b/py/demo/IceStorm/clock/Subscriber.py @@ -21,14 +21,8 @@ class Subscriber(Ice.Application): def run(self, args): properties = self.communicator().getProperties() - proxyProperty = 'IceStorm.TopicManager.Proxy' - proxy = properties.getProperty(proxyProperty) - if len(proxy) == 0: - print self.appName() + ": property `" + proxyProperty + "' not set" - return False - - base = self.communicator().stringToProxy(proxy) - manager = IceStorm.TopicManagerPrx.checkedCast(self.communicator().stringToProxy(proxy)) + manager = IceStorm.TopicManagerPrx.checkedCast(\ + self.communicator().propertyToProxy('IceStorm.TopicManager.Proxy')) if not manager: print args[0] + ": invalid proxy" return False |