Release tizen_2.0_beta
[framework/connectivity/connman.git] / test / simple-agent
index 38b6e41..d3bb315 100755 (executable)
@@ -33,11 +33,9 @@ class Agent(dbus.service.Object):
                                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
@@ -62,11 +60,9 @@ class Agent(dbus.service.Object):
                                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
@@ -97,22 +93,6 @@ 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): ")