##// 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 199 req.form['node'] = [fn[:-len(ext)]]
200 200 req.form['type'] = [type_]
201 201
202 # actually process the request
203
204 try:
202 # process this if it's a protocol request
205 203
206 204 cmd = req.form.get('cmd', [''])[0]
207 205 if cmd in protocol.__all__:
208 206 method = getattr(protocol, cmd)
209 207 method(self, req)
210 else:
208 return
209
210 # process the web interface request
211
212 try:
213
211 214 tmpl = self.templater(req)
212 215 ctype = tmpl('mimetype', encoding=self.encoding)
213 216 ctype = templater.stringify(ctype)
General Comments 0
You need to be logged in to leave comments. Login now