kulpa / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

oauth2client/appengine.py support for threaded python2.7 #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the Python 2.7 App Engine runtime, and oauth2client/appengine.py as 
my /oauth2 callback handler. I'd like to turn threading on in the App Engine 
runtime, but I can't because the handler code in oauth2client/appengine.py is 
incompatible. It would be great to have a version of oauth2client/appengine.py 
that worked in a threaded App Engine Python 2.7 environment.

Original issue reported on code.google.com by je...@google.com on 15 Mar 2012 at 5:15

GoogleCodeExporter commented 9 years ago
You don't need to use the default mappings in app.yaml. You could change
the app.yaml line from:

  - url: /oauth2callback
  script: oauth2client/appengine.py

To:

  - url: /oauth2callback
  script: oauth2client.appengine.application

Or is there some other change that needs to be made?

Original comment by jcgregorio@google.com on 15 Mar 2012 at 5:23

GoogleCodeExporter commented 9 years ago
Aha, that was enough to make it happy. Thanks for the info, Joe!

Original comment by je...@google.com on 15 Mar 2012 at 5:27

GoogleCodeExporter commented 9 years ago

Original comment by jcgregorio@google.com on 15 Mar 2012 at 5:37

GoogleCodeExporter commented 9 years ago
Added a note to the wiki with this info:

 http://code.google.com/p/google-api-python-client/wiki/GoogleAppEngine#Python_2.7_and_Threads

Original comment by jcgregorio@google.com on 15 Mar 2012 at 5:39