On Apr 2, 2006, at 4:10 PM, Ben Bangert wrote:
Gotcha. Thanks.
Hmm, I don't think it should be 404, it should be 405: 10.4.6 405 Method Not Allowed The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource. (No reason we can't write code to build the Allow header explicitly, based on the decorator value...) Does this suggest that @pylons.rest.restrict() should take a list? @pylons.rest.resrict("POST", "PUT"), so any other method returns a 405 with an Allow: header of POST, PUT: HTTP/1.1 405 Method Not Allowed Allow: POST, PUT Yeah? And, FWIW, I think I prefer @pylons.rest.dispatch() to dispatch_on(), but that's up to you.
Yes, I do too. But I think restrict should take multiple methods.
Right now, today, that doesn't bother me. :> Cheers, Kendall --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss -~----------~----~----~----~------~----~------~--~--- |
- Re: routes request Ben Bangert
- Re: routes request Kendall Clark
- Re: routes request Ben Bangert
- Re: routes request Kendall Clark
- Re: routes request Ben Bangert
- Re: routes request Jos Yule
- Re: routes request Kendall Clark
- Re: routes request Ben Bangert
- Re: routes request [EMAIL PROTECTED]
- Re: routes request [EMAIL PROTECTED]
- Re: routes request Ben Bangert
- Re: routes request iGL
- Re: routes request Neil
- Re: routes request Neil
