equal
deleted
inserted
replaced
66 self.allowpull = self.configbool("web", "allowpull", True) |
66 self.allowpull = self.configbool("web", "allowpull", True) |
67 self.encoding = self.config("web", "encoding", encoding.encoding) |
67 self.encoding = self.config("web", "encoding", encoding.encoding) |
68 |
68 |
69 def run(self): |
69 def run(self): |
70 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
70 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
71 raise RuntimeError("This function is only intended to be called while running as a CGI script.") |
71 raise RuntimeError("This function is only intended to be " |
|
72 "called while running as a CGI script.") |
72 import mercurial.hgweb.wsgicgi as wsgicgi |
73 import mercurial.hgweb.wsgicgi as wsgicgi |
73 wsgicgi.launch(self) |
74 wsgicgi.launch(self) |
74 |
75 |
75 def __call__(self, env, respond): |
76 def __call__(self, env, respond): |
76 req = wsgirequest(env, respond) |
77 req = wsgirequest(env, respond) |