~ubuntukylin-members/ubuntu-kylin-sso-client/trunk

« back to all changes in this revision

Viewing changes to ubuntu_kylin_sso/main/linux.py

  • Committer: Luo Lei
  • Date: 2014-10-16 07:50:18 UTC
  • Revision ID: luolei@ubuntukylin.com-20141016075018-34qen750o7guei4r
Fix bug in DBus call "register"

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
                         in_signature='sa{ss}', out_signature='')
318
318
    def register(self, app_name, args):
319
319
        """Get credentials if found else prompt GUI to register."""
320
 
        # Now use UbuntuKylin forum to setup account - 20141016 Robert
321
 
        # self.root.cred_manager.register(app_name, args)
322
 
        from ubuntu_kylin_sso.constants import REGISTER_URL
323
 
        import webbrowser
324
 
        webbrowser.open(REGISTER_URL)
325
 
 
 
320
        self.root.cred_manager.register(app_name, args)
326
321
 
327
322
    @dbus.service.method(dbus_interface=DBUS_CREDENTIALS_IFACE,
328
323
                         in_signature='sa{ss}', out_signature='')