List Info

Thread: Enhancing documentation of pylons' global response (and a little inconsistency)




Enhancing documentation of pylons' global response (and a little inconsistency)
country flaguser name
United States
2007-10-17 10:04:02
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-discussgooglegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )