mercurial/hgweb/hgwebdir_mod.py
branchstable
changeset 34193 734983de2291
parent 33328 c8f212cb0c83
child 34257 2844c4bd5a39
equal deleted inserted replaced
34145:1908dc958639 34193:734983de2291
   171         self.repos = repos
   171         self.repos = repos
   172         self.ui = u
   172         self.ui = u
   173         encoding.encoding = self.ui.config('web', 'encoding',
   173         encoding.encoding = self.ui.config('web', 'encoding',
   174                                            encoding.encoding)
   174                                            encoding.encoding)
   175         self.style = self.ui.config('web', 'style', 'paper')
   175         self.style = self.ui.config('web', 'style', 'paper')
   176         self.templatepath = self.ui.config('web', 'templates', None)
   176         self.templatepath = self.ui.config('web', 'templates', None,
       
   177                                            untrusted=False)
   177         self.stripecount = self.ui.config('web', 'stripes', 1)
   178         self.stripecount = self.ui.config('web', 'stripes', 1)
   178         if self.stripecount:
   179         if self.stripecount:
   179             self.stripecount = int(self.stripecount)
   180             self.stripecount = int(self.stripecount)
   180         self._baseurl = self.ui.config('web', 'baseurl')
   181         self._baseurl = self.ui.config('web', 'baseurl')
   181         prefix = self.ui.config('web', 'prefix', '')
   182         prefix = self.ui.config('web', 'prefix', '')