2008/6/24 <[EMAIL PROTECTED]>: > The code changes look fine. > > Unfortunately for me, I'm not sure I understand the difference between > the _cp_config space and the stuff that was being configured by the > decorator. Are you able to explain a little more about the root-cause > of this problem?
I haven't traced through all of it, but this is the short version based on my understanding: @tools.response.headers hooks into on_start_resource and so is dynamic. Apparently, streaming response generator (response.stream: True) are only allowed to change headers either from the very first time the method is called or by pre-defining the header information in the configuration namespace. Why specifically this is broken, I'm not entirely certain yet. I filed a bug cherrypy.org, so maybe I will find out more. In the meantime, this was the easiest solution. The current @tools.response.headers syntax was suggested to me by one of the cherrypy authors, so I'm inclined to believe it's a cherrypy bug. Cheers, -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
