1ap / google-api-python-client

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

No output using a return-value dispatcher in webapp2 with the appengine decorators #180

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I use a return-value dispatcher as detailed at 
http://webapp-improved.appspot.com/guide/handlers.html#returned-values for 
convenience. When used in conjunction with the OAuth2Decorator all output 
disappears.

The following code:

class A(BaseHandler):
    @decorator.oauth_required
    def get(self):
        return "A"

should output "A" but it is instead giving a blank page response.

Attached is a minimally tested solution (I can confirm that it makes the code 
above work)

Original issue reported on code.google.com by k...@ninjalith.com on 22 Aug 2012 at 4:18

Attachments:

GoogleCodeExporter commented 8 years ago
Fix is incorporated in the CL out for review 
http://codereview.appspot.com/6473053/.

Original comment by jcgregorio@google.com on 23 Aug 2012 at 6:37

GoogleCodeExporter commented 8 years ago

Original comment by jcgregorio@google.com on 25 Aug 2012 at 2:45