I've wasted some time today trying to figure out where  in my service stack an 
http 
405 is being returned. (zope, or my paste service, or the service my paste 
service 
calls .. )


I finally tracked it down to fileapp.py, specifically DataApp.__call__ which 
now 
apparently doesn't like to respond to POST requests.

Can someone explain the logic with this change? An accident maybe when trying 
to handle HEAD requests?


I receive a REST POST to a resource and I want to return it. I use DataApp to 
do 
that, but now it doesn't work!

Why can't POST requests return data?

Do I have to subclass DataApp, or modify all my code to alter 
environ[REQUEST_METHOD] before returning a DataApp object?



--

For debugging, I would really like a way to get a stack trace when the http 
status 
code gets set. I have no idea how this could be done, but with so many layers 
in a 
paste app, it can be very difficult to figure out who is setting the status 
code.

Maybe when an HTTPException object is created (and some debug option has 
been set), the exception object could log a traceback right then.. Boy, that 
sure 
would be handy for tracking down these kinds of problems.

Thanks



-- 
Brad Clements,                [EMAIL PROTECTED]    (315)268-1000
http://www.murkworks.com                          
AOL-IM or SKYPE: BKClements



_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to