OLD | NEW |
1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 import logging | 5 import logging |
6 | 6 |
7 from google.appengine.api import memcache | 7 from google.appengine.api import memcache |
8 from google.appengine.ext import ndb | 8 from google.appengine.ext import ndb |
9 from protorpc import messages | 9 from protorpc import messages |
10 from protorpc import message_types | 10 from protorpc import message_types |
11 from protorpc import remote | 11 from protorpc import remote |
12 import endpoints | 12 import endpoints |
13 | 13 |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 config_set=config['config_set'], | 469 config_set=config['config_set'], |
470 revision=config['revision'], | 470 revision=config['revision'], |
471 content_hash=config['content_hash'], | 471 content_hash=config['content_hash'], |
472 content=config.get('content'), | 472 content=config.get('content'), |
473 )) | 473 )) |
474 return res | 474 return res |
475 | 475 |
476 | 476 |
477 def raise_config_not_found(): | 477 def raise_config_not_found(): |
478 raise endpoints.NotFoundException('The requested config is not found') | 478 raise endpoints.NotFoundException('The requested config is not found') |
OLD | NEW |