Hi Devraj, It's certainly fine to extend WSGIApplication if you wish, as long as you don't depend on internal implementation details. Most of what you want to do, though, seems like it would be better served by creating a subclass of RequestHandler that all your handlers extend.
-Nick Johnson On Thu, Jan 27, 2011 at 10:41 PM, Devraj Mukherjee <[email protected]> wrote: > Hi all, > > Our application uses Python on the server side and Closure/JS on the > client side. Most of our server side code is to provide a RESTful > interface our models. > > Since the application is quite complex and have a fair number of REST > services we were think of "writing our code better". The idea was to > write a wrapper around the WSGIApplication lifecycle to achieve the > following > > - Assist with JSON serialization by moving common tasks to a parent class > - Validation framework for GET / POST / PUT / DELETE requests > - And of course execute the the right method in the Request handler > > To me the best way of doing this is to intervene with the > WSGIApplication lifecycle. > > Although whenever it comes to extending the core framework for > anything, I always become weary and can't help but think its a bad > idea. > > Any suggestions or warnings? :) > > Thanks for your time. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
