Hi!
I'm implementing rest services over pylons. When I tried to
figure how
to implement the creation of a new resource ( POST to a
resource ), I
had a hard time finding out how to return the right status
code (201
in this case).
Browsing the pylons documentation of WSGIResponse I didn't
find any
information in
http://pylonshq.com/docs/class-pas
te.wsgiwrappers.WSGIResponse.html#attributes
Finally I found the solution in this group: there is a
"status_code"
attribute in WSGIResponse.
How can a simple guy like me contribute to enhance the
pylons docs in
this issue?
Also, I found a little inconsistency in pylons between the
global
pylons' response object and TestResponse (when doing Test
Driven
Development)
pylons.response has "status_code" attribute
but
TestResponse names it "status"
This is somewhat confusing....
Good luck
Agustin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---
|