Re: Error on upgrading from .9.6 when touching Headers in response

2009-03-14 Thread Philip Jenvey


On Mar 14, 2009, at 9:24 AM, Jonathan Vanasco wrote:


 so basically we mostly just need a docs change to the 'migrating to
 0.9.7' instructions

Ok, done. Feel free to add to my change:

http://wiki.pylonshq.com/pages/diffpages.action?pageId=11174779originalId=15302939

--
Philip Jenvey


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Error on upgrading from .9.6 when touching Headers in response

2009-03-12 Thread Jonathan Vanasco

in .9.6 setting headers like this worked:
response.headers['Content-Type'] = 'application/ms-excel'

in .9.7 , anything i do to them is met with this
AttributeError: You cannot access Response.unicode_body unless charset
is set

looking at the new webob docs,

i tried doing
response.charset = 'utf8'

but that didn't work either.

so then i tried setting response.content_type , which worked

BUT

i also needed to set response.headers['Content-Disposition']

response.content_disposition ended up working, but its not documented
in webob

and these changes in how headers are affected are wholly undocumented
in the migration docs
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Error on upgrading from .9.6 when touching Headers in response

2009-03-12 Thread Jonathan Vanasco

to add:

response.content_disposition 'works' in that it doesn't cause an
error.  but it's not respected.

i've yet to test headers for 'cache-control' , 'pragma' , and
'expires'.

needless to say, this is a very annoying bug/behavior change.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---