Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: appengine/findit/handlers/config.py

Issue 1497783003: [Findit] Use Findit's own versioned config. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@versioned_model
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/findit/handlers/test/config_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/config.py
diff --git a/appengine/findit/handlers/config.py b/appengine/findit/handlers/config.py
index 6847a8aff6599e7f738e3f8da9f8655bbf8b0bb5..f83c7cf371580d87ac622ef025842211adc020eb 100644
--- a/appengine/findit/handlers/config.py
+++ b/appengine/findit/handlers/config.py
@@ -99,12 +99,12 @@ class Configuration(BaseHandler):
PERMISSION_LEVEL = Permission.ADMIN
def HandleGet(self):
- settings = wf_config.Settings()
+ settings = wf_config.FinditConfig.Get()
data = {
'masters': settings.masters_to_blacklisted_steps,
'builders': settings.builders_to_trybots,
- 'version': settings.VersionNumber,
+ 'version': settings.version,
}
return {'template': 'config.html', 'data': data}
@@ -117,6 +117,6 @@ class Configuration(BaseHandler):
return self.CreateError(
'New configuration settings is not properly formatted.', 400)
- wf_config.Update(new_config_dict)
+ wf_config.FinditConfig.Get().Update(**new_config_dict)
return self.HandleGet()
« no previous file with comments | « no previous file | appengine/findit/handlers/test/config_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698