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

« back to all changes in this revision

Viewing changes to ubuntu_kylin_sso/credentials.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:
170
170
        If no GUI is available, GUINotAvailableError will be raised.
171
171
 
172
172
        """
 
173
        # Now use UbuntuKylin forum to setup account - 20141016 Robert
 
174
        if not login_only:
 
175
            from ubuntu_kylin_sso.constants import REGISTER_URL
 
176
            import webbrowser
 
177
            webbrowser.open(REGISTER_URL)
 
178
            return
 
179
 
173
180
        guis = (self.ui_executable, UI_EXECUTABLE_QT)
174
181
        for gui_exe_name in guis:
175
182
            try: