configitems: register the 'web.maxshortchanges' config

This commit is contained in:
Boris Feld 2017-10-11 03:39:21 +02:00
parent 5c68cc40ee
commit 6ea0289f11
2 changed files with 4 additions and 1 deletions

View File

@ -730,6 +730,9 @@ coreconfigitem('web', 'errorlog',
coreconfigitem('web', 'ipv6',
default=False,
)
coreconfigitem('web', 'maxshortchanges',
default=60,
)
coreconfigitem('web', 'motd',
default='',
)

View File

@ -112,7 +112,7 @@ class requestcontext(object):
self.maxchanges = self.configint('web', 'maxchanges', 10)
self.stripecount = self.configint('web', 'stripes')
self.maxshortchanges = self.configint('web', 'maxshortchanges', 60)
self.maxshortchanges = self.configint('web', 'maxshortchanges')
self.maxfiles = self.configint('web', 'maxfiles', 10)
self.allowpull = self.configbool('web', 'allowpull', True)