if arg.startswith("Identity="):
identity = arg.replace("Identity=", "", 1)
response["Identity"] = identity
- break
if arg.startswith("Passphrase="):
passphrase = arg.replace("Passphrase=", "", 1)
response["Passphrase"] = passphrase
- break
if arg.startswith("WPS="):
wpspin = arg.replace("WPS=", "", 1)
response["WPS"] = wpspin
if arg.startswith("Username="):
username = arg.replace("Username=", "", 1)
response["Username"] = username
- break
if arg.startswith("Password="):
password = arg.replace("Password=", "", 1)
response["Password"] = password
- break
else:
if self.username:
response["Username"] = self.username
@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): ")