comparison MoinMoin/stats/pagesize.py @ 4183:fc20a076aad0

Accomodate for consolidation of Request/Response
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 21 Jun 2008 16:57:20 +0200
parents 85884c67228d
children
comparison
equal deleted inserted replaced
4182:ca0cf44dab89 4183:fc20a076aad0
111 ) 111 )
112 c.draw(style, 112 c.draw(style,
113 (request.cfg.chart_options['width'], request.cfg.chart_options['height']), 113 (request.cfg.chart_options['width'], request.cfg.chart_options['height']),
114 image, labels) 114 image, labels)
115 115
116 request.response.content_type = 'image/gif' 116 request.content_type = 'image/gif'
117 request.response.content_length = len(image.getvalue()) 117 request.content_length = len(image.getvalue())
118 118
119 # copy the image 119 # copy the image
120 image.reset() 120 image.reset()
121 shutil.copyfileobj(image, request, 8192) 121 shutil.copyfileobj(image, request, 8192)
122 122