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,
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
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
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
4 matches
Mail list logo