diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-09-04 13:32:59 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-09-04 13:32:59 -0230 |
commit | 21636696805e2963b6869122ff7268004821eb19 (patch) | |
tree | ef158217555fba17c4d173b183dcf7c6607249b3 /py/demo/Ice/callback/Client.py | |
parent | Added support for Java monotonic clock (diff) | |
download | ice-21636696805e2963b6869122ff7268004821eb19.tar.bz2 ice-21636696805e2963b6869122ff7268004821eb19.tar.xz ice-21636696805e2963b6869122ff7268004821eb19.zip |
bug 1831 - changed demos as well to warn about extra arguments
Diffstat (limited to 'py/demo/Ice/callback/Client.py')
-rw-r--r-- | py/demo/Ice/callback/Client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/Ice/callback/Client.py b/py/demo/Ice/callback/Client.py index 598fe413740..77f3f9679a5 100644 --- a/py/demo/Ice/callback/Client.py +++ b/py/demo/Ice/callback/Client.py @@ -34,6 +34,10 @@ class CallbackReceiverI(Demo.CallbackReceiver): class Client(Ice.Application): def run(self, args): + if len(args) > 1: + print self.appName() + ": too many arguments" + return 1 + base = self.communicator().propertyToProxy('Callback.CallbackServer') twoway = Demo.CallbackSenderPrx.checkedCast(base.ice_twoway().ice_timeout(-1).ice_secure(False)) if not twoway: |