comparison mercurial/hgweb/hgwebdir_mod.py @ 34587:b50c036494dc

configitems: register the 'web.motd' config
author Boris Feld <boris.feld@octobus.net>
date Wed, 11 Oct 2017 03:36:44 +0200
parents 8afc25e7effc
children c879fc7bd71f
comparison
equal deleted inserted replaced
34586:c364f3f73634 34587:b50c036494dc
489 489
490 def motd(**map): 490 def motd(**map):
491 if self.motd is not None: 491 if self.motd is not None:
492 yield self.motd 492 yield self.motd
493 else: 493 else:
494 yield config('web', 'motd', '') 494 yield config('web', 'motd')
495 495
496 def config(section, name, default=uimod._unset, untrusted=True): 496 def config(section, name, default=uimod._unset, untrusted=True):
497 return self.ui.config(section, name, default, untrusted) 497 return self.ui.config(section, name, default, untrusted)
498 498
499 self.updatereqenv(req.env) 499 self.updatereqenv(req.env)