On Mar 10, 2008, at 10:16 AM, Justin Fiore wrote:
> FYI, I had created a simple google code project that has classes for
> all of the HTTP response codes listed in the "RESTful Webservices
> Book".
> Instead of adding them to django.http (since that issue was already
> address and denied).

Oops I didn't realize. Does anyone have a pointer to the relevant  
discussion? I am curious to know why this was denied.

Your project seems like a good way to keep them separated anyway.  
Would you consider adding constructors for some of the response  
objects, like this one:

class HttpResponseUnauthorized(HttpResponse):
     status_code = 401

     def __init__(self, www_authenticate):
         HttpResponse.__init__(self)
         self['WWW-Authenticate'] = www_authenticate

This seems to be the style adopted in django.http

jared


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to