comparison mercurial/hgweb/protocol.py @ 20903:8d477543882b

wireproto: introduce an abstractserverproto class sshserver and webproto now inherit from an abstractserverproto class. This class is introduced for documentation purpose.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 28 Mar 2014 11:10:33 -0700
parents e33b9b92a200
children 37fcfe52c68c
comparison
equal deleted inserted replaced
20902:1e4fda2f5cf1 20903:8d477543882b
10 from common import HTTP_OK 10 from common import HTTP_OK
11 11
12 HGTYPE = 'application/mercurial-0.1' 12 HGTYPE = 'application/mercurial-0.1'
13 HGERRTYPE = 'application/hg-error' 13 HGERRTYPE = 'application/hg-error'
14 14
15 class webproto(object): 15 class webproto(wireproto.abstractserverproto):
16 def __init__(self, req, ui): 16 def __init__(self, req, ui):
17 self.req = req 17 self.req = req
18 self.response = '' 18 self.response = ''
19 self.ui = ui 19 self.ui = ui
20 def getargs(self, args): 20 def getargs(self, args):