Chris McDonough wrote:
>> Also, how come you put response attributes on the request when using a
>> How about a RenderResponse object:
>> class RenderResponse(dict):
>> def __init__(self):
>> self.content_type = 'the default'
>> self.header_list = 
>> self.status = '200 Ok' # or whatever...
>> self.charset = 'utf-8'
>> self.cache_for = 0
>> ...then in you view you could just do:
>> from repoze.bfg.view import bfg_view
>> from repoze.somewhere import RenderResponse
>> def myview(request):
>> response = Response(URL=request.URL)
>> response.status = '404 Not Found'
>> return response
>> The view code wouldn't change and you wouldn't have to pollute the
> Could have been, too late now.
How about for 1.4?
Simplistix - Content Management, Batch Processing & Python Consulting
Repoze-dev mailing list