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

Unified Diff: reviewbot/model/app_config.py

Issue 20495003: Implement interface to Rietveld. (Closed) Base URL: https://src.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 4 months 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 | « reviewbot/model/__init__.py ('k') | reviewbot/rietveld.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: reviewbot/model/app_config.py
===================================================================
--- reviewbot/model/app_config.py (revision 0)
+++ reviewbot/model/app_config.py (revision 0)
@@ -0,0 +1,20 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from google.appengine.ext import ndb
+
+
+class AppConfig(ndb.Model):
+ """Application configuration data."""
+ client_id = ndb.TextProperty()
+ service_account_key = ndb.TextProperty()
+ server_url = ndb.TextProperty()
+ nickname = ndb.TextProperty()
+
+
+def get():
+ config = ndb.Key(AppConfig, 'config').get()
+ if config is None:
+ config = AppConfig(id='config')
+ return config
Property changes on: reviewbot/model/app_config.py
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « reviewbot/model/__init__.py ('k') | reviewbot/rietveld.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698