Re: HttpMethodsMiddleware and mod_python (REST)

2007-09-01 Thread David Larlet
2007/8/31, Benjamin Slavin <[EMAIL PROTECTED]>: > > On 8/31/07, David Larlet <[EMAIL PROTECTED]> wrote: > > > request.method = request.REQUEST[_MIDDLEWARE_KEY].upper() > > > AttributeError: can't set attribute > > > > > Hello David, Hi Ben, > > I don't have a mod_python install I can easily test

Re: HttpMethodsMiddleware and mod_python (REST)

2007-08-31 Thread Benjamin Slavin
On 8/31/07, David Larlet <[EMAIL PROTECTED]> wrote: > > request.method = request.REQUEST[_MIDDLEWARE_KEY].upper() > > AttributeError: can't set attribute > > Hello David, I don't have a mod_python install I can easily test on, but could you try this for me: request._req.method = request.REQUEST

Re: HttpMethodsMiddleware and mod_python (REST)

2007-08-31 Thread David Larlet
2007/8/29, David Larlet <[EMAIL PROTECTED]>: > Hello all, > > I wonder if there is an alternative of the HttpMethodsMiddleware > snippet http://www.djangosnippets.org/snippets/174/ which works with > mod_python because for the moment it raises an AttributeError when you > try to modify the request

HttpMethodsMiddleware and mod_python (REST)

2007-08-29 Thread David Larlet
Hello all, I wonder if there is an alternative of the HttpMethodsMiddleware snippet http://www.djangosnippets.org/snippets/174/ which works with mod_python because for the moment it raises an AttributeError when you try to modify the request.method: request.method = request.REQUEST[_MIDDLEWARE_K