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/Ice/value/Client.py | |
parent | Code cleanup (diff) | |
download | ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2 ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz ice-1126cea5189d035934f98822078f2ae23d9739ec.zip |
Added propertyToProxy
Diffstat (limited to 'py/demo/Ice/value/Client.py')
-rw-r--r-- | py/demo/Ice/value/Client.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/py/demo/Ice/value/Client.py b/py/demo/Ice/value/Client.py index e9ee738dfa8..9579fa7653c 100644 --- a/py/demo/Ice/value/Client.py +++ b/py/demo/Ice/value/Client.py @@ -29,14 +29,7 @@ class ObjectFactory(Ice.ObjectFactory): class Client(Ice.Application): def run(self, args): - properties = self.communicator().getProperties() - refProperty = 'Value.Initial' - proxy = properties.getProperty(refProperty) - if len(proxy) == 0: - print args[0] + ": property `" + refProperty + "' not set" - return False - - base = self.communicator().stringToProxy(proxy) + base = self.communicator().propertyToProxy('Value.Initial') initial = Demo.InitialPrx.checkedCast(base) if not initial: print args[0] + ": invalid proxy" |