equal
deleted
inserted
replaced
186 |
186 |
187 if cmd == '': |
187 if cmd == '': |
188 req.form['cmd'] = [tmpl.cache['default']] |
188 req.form['cmd'] = [tmpl.cache['default']] |
189 cmd = req.form['cmd'][0] |
189 cmd = req.form['cmd'][0] |
190 |
190 |
191 caching(self, req) # sets ETag header or raises NOT_MODIFIED |
191 if self.configbool('web', 'cache', True): |
|
192 caching(self, req) # sets ETag header or raises NOT_MODIFIED |
192 if cmd not in webcommands.__all__: |
193 if cmd not in webcommands.__all__: |
193 msg = 'no such method: %s' % cmd |
194 msg = 'no such method: %s' % cmd |
194 raise ErrorResponse(HTTP_BAD_REQUEST, msg) |
195 raise ErrorResponse(HTTP_BAD_REQUEST, msg) |
195 elif cmd == 'file' and 'raw' in req.form.get('style', []): |
196 elif cmd == 'file' and 'raw' in req.form.get('style', []): |
196 self.ctype = ctype |
197 self.ctype = ctype |