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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « reviewbot/model/__init__.py ('k') | reviewbot/rietveld.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from google.appengine.ext import ndb
6
7
8 class AppConfig(ndb.Model):
9 """Application configuration data."""
10 client_id = ndb.TextProperty()
11 service_account_key = ndb.TextProperty()
12 server_url = ndb.TextProperty()
13 nickname = ndb.TextProperty()
14
15
16 def get():
17 config = ndb.Key(AppConfig, 'config').get()
18 if config is None:
19 config = AppConfig(id='config')
20 return config
OLDNEW
« 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