diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-02-14 12:05:47 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-02-14 14:55:56 +0100 |
commit | 11863bb1a422e563c1e95bbe91db83b56ca58f6b (patch) | |
tree | e90f9c3a2985ec25dca11a476f4603861c0705b9 /test | |
parent | bfa97eda0985de87982e4b49f0383750f1115c86 (diff) | |
download | connman-11863bb1a422e563c1e95bbe91db83b56ca58f6b.tar.gz connman-11863bb1a422e563c1e95bbe91db83b56ca58f6b.tar.bz2 connman-11863bb1a422e563c1e95bbe91db83b56ca58f6b.zip |
test: Update simple-agent to handle RequestBrowser method
Diffstat (limited to 'test')
-rwxr-xr-x | test/simple-agent | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/simple-agent b/test/simple-agent index cda96931..38b6e41f 100755 --- a/test/simple-agent +++ b/test/simple-agent @@ -97,6 +97,22 @@ class Agent(dbus.service.Object): @dbus.service.method("net.connman.Agent", in_signature='os', out_signature='') + def RequestBrowser(self, path, url): + print "RequestBrowser (%s,%s)" % (path, url) + + print "Please login through the given url in a browser" + print "Then press enter to accept or some text to cancel" + + args = raw_input('> ') + + if len(args) > 0: + raise Canceled("canceled") + + return + + @dbus.service.method("net.connman.Agent", + in_signature='os', + out_signature='') def ReportError(self, path, error): print "ReportError %s, %s" % (path, error) retry = raw_input("Retry service (yes/no): ") |