~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 03:33:26 UTC
  • Revision ID: luolei@ubuntukylin.com-20141016033326-4wgvn2m2a8hdhd4t
Alter the DBus call \"register\"to use Ubuntu Kylin forum

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
 
        self.root.cred_manager.register(app_name, args)
 
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
 
321
326
 
322
327
    @dbus.service.method(dbus_interface=DBUS_CREDENTIALS_IFACE,
323
328
                         in_signature='sa{ss}', out_signature='')