Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I ran into some difficulty with webapp2 because of the way RequestHandler.init worked. Basically there was no way to have a derived class from RequestHandler due to the call of self.dispatch at the bottom of init.
If you called super at the beginning of your derived class init then you never executed your code. If you called it at the end, then self.request and self.response were not set when you tried to do your specific code.
I fixed all this and seeing how initialize was not callable, took a swat at fixing it too. Now, if you substitue webapp2 for webapp and the derived RequestHandler based object has an self.initialize method, it will be called (just like in webapp?).
Let me know if you see any problems with this. If you don't please feel free to include it in your code. I will license it under the same license you choose for the project.
Thanks for the good work BTW.