Re: request.method GET or POST

2011-07-12 Thread Masklinn
On 2011-07-12, at 07:04 , Venkatraman S wrote: > Comments? (note that i am not passing request object to individual doPOST or > doGET). You can trivially do that by using callable objects as views, with a common superclass for dispatching. class MethodView(object): def __call__(self, request,

Re: request.method GET or POST

2011-07-12 Thread Jonas Geiregat
Op 12-jul-2011, om 07:04 heeft Venkatraman S het volgende geschreven: > We have to check for request.method to suitably route the request to the > logic. > > Would it be nice if we have something like doGet or doPost(similar to java > servlets) that we have in our views, > so that the request

Re: request.method GET or POST

2011-07-12 Thread bruno desthuilliers
On Jul 12, 7:04 am, Venkatraman S wrote: > We have to check for request.method to suitably route the request to the > logic. > > Would it be nice if we have something like doGet or doPost(similar to java > servlets) that we have in our views, > so that the request gets automatically routed , and t

request.method GET or POST

2011-07-11 Thread Venkatraman S
We have to check for request.method to suitably route the request to the logic. Would it be nice if we have something like doGet or doPost(similar to java servlets) that we have in our views, so that the request gets automatically routed , and the code is structured nicely? So a view would look l