Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 613850 | Differences between
and this patch

Collapse All | Expand All

(-)a/gcalcli-3.3.2/gcalcli (-3 / +5 lines)
Lines 190-196 Link Here
190
    from apiclient.errors import HttpError
190
    from apiclient.errors import HttpError
191
    from oauth2client.file import Storage
191
    from oauth2client.file import Storage
192
    from oauth2client.client import OAuth2WebServerFlow
192
    from oauth2client.client import OAuth2WebServerFlow
193
    from oauth2client.tools import run
193
    from oauth2client.tools import run_flow
194
    from oauth2client.tools import argparser
194
except ImportError as e:
195
except ImportError as e:
195
    print "ERROR: Missing module - %s" % e.args[0]
196
    print "ERROR: Missing module - %s" % e.args[0]
196
    sys.exit(1)
197
    sys.exit(1)
Lines 665-678 Link Here
665
            credentials = storage.get()
666
            credentials = storage.get()
666
667
667
            if credentials is None or credentials.invalid:
668
            if credentials is None or credentials.invalid:
668
                credentials = run(
669
                args, unknown = argparser.parse_known_args(sys.argv)
670
                credentials = run_flow(
669
                    OAuth2WebServerFlow(
671
                    OAuth2WebServerFlow(
670
                        client_id=self.client_id,
672
                        client_id=self.client_id,
671
                        client_secret=self.client_secret,
673
                        client_secret=self.client_secret,
672
                        scope=['https://www.googleapis.com/auth/calendar',
674
                        scope=['https://www.googleapis.com/auth/calendar',
673
                               'https://www.googleapis.com/auth/urlshortener'],
675
                               'https://www.googleapis.com/auth/urlshortener'],
674
                        user_agent=__program__ + '/' + __version__),
676
                        user_agent=__program__ + '/' + __version__),
675
                    storage)
677
                    storage,args)
676
678
677
            self.authHttp = credentials.authorize(httplib2.Http())
679
            self.authHttp = credentials.authorize(httplib2.Http())
678
680

Return to bug 613850