Other articles


  1. Un middleware WSGI pour overrider les methodes HTTP

    from webob import Request
    
    class HttpMethodOverrideMiddleware(object):
        """WSGI middleware for overriding HTTP Request Method for RESTful support.
    
        Overriding is authorized only for the HTTP POST method.
        HTML forms can override by providing an additional input.
        Javascript calls can override by providing a specific header.
        """
        def __init__(self, application,
            input_name='REQUEST_METHOD_OVERRIDE ...
    read more

blogroll

social