##// END OF EJS Templates
hgweb: separate protocol calls from interface calls (issue996)...
Dirkjan Ochtman -
r6149:b023915a default
parent child Browse files
Show More
@@ -199,15 +199,18 b' class hgweb(object):'
199 req.form['node'] = [fn[:-len(ext)]]
199 req.form['node'] = [fn[:-len(ext)]]
200 req.form['type'] = [type_]
200 req.form['type'] = [type_]
201
201
202 # actually process the request
202 # process this if it's a protocol request
203
204 try:
205
203
206 cmd = req.form.get('cmd', [''])[0]
204 cmd = req.form.get('cmd', [''])[0]
207 if cmd in protocol.__all__:
205 if cmd in protocol.__all__:
208 method = getattr(protocol, cmd)
206 method = getattr(protocol, cmd)
209 method(self, req)
207 method(self, req)
210 else:
208 return
209
210 # process the web interface request
211
212 try:
213
211 tmpl = self.templater(req)
214 tmpl = self.templater(req)
212 ctype = tmpl('mimetype', encoding=self.encoding)
215 ctype = tmpl('mimetype', encoding=self.encoding)
213 ctype = templater.stringify(ctype)
216 ctype = templater.stringify(ctype)
General Comments 0
You need to be logged in to leave comments. Login now