Allow the default project change list query to be customized

Change-Id: I84a5f701db52425ddbeac566eed45889a98a685b
This commit is contained in:
James E. Blair
2014-07-24 19:34:05 -07:00
parent ffee46e7ee
commit 492a857764
3 changed files with 10 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ class ConfigSchema(object):
'commentlinks': self.commentlinks,
'dashboards': self.dashboards,
'reviewkeys': self.reviewkeys,
'change-list-query': str,
})
return schema
@@ -141,6 +142,8 @@ class Config(object):
text="{url}",
url="{url}"))])))
self.project_change_list_query = self.config.get('change-list-query', 'status:open')
self.dashboards = OrderedDict()
for d in self.config.get('dashboards', []):
self.dashboards[d['key']] = d