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

Side by Side Diff: chrome/common/extensions/docs/server2/compiled_file_system.py

Issue 176973009: Doc server: support interfaces in src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename path constants, update APIModels.GetModel Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import sys 5 import sys
6 6
7 import schema_util 7 import schema_util
8 from docs_server_utils import ToUnicode 8 from docs_server_utils import ToUnicode
9 from file_system import FileNotFoundError 9 from file_system import FileNotFoundError
10 from future import Gettable, Future 10 from future import Gettable, Future
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 return cache_entry.version 252 return cache_entry.version
253 return self._file_system.Stat(path).version 253 return self._file_system.Stat(path).version
254 254
255 def GetFileListingVersion(self, path): 255 def GetFileListingVersion(self, path):
256 if not path.endswith('/'): 256 if not path.endswith('/'):
257 path += '/' 257 path += '/'
258 cache_entry = self._list_object_store.Get(path).Get() 258 cache_entry = self._list_object_store.Get(path).Get()
259 if cache_entry is not None: 259 if cache_entry is not None:
260 return cache_entry.version 260 return cache_entry.version
261 return self._file_system.Stat(path).version 261 return self._file_system.Stat(path).version
262
263 def FileExists(self, path):
not at google - send to devlin 2014/03/07 01:04:52 see elsewhere-comment about not needing this funct
Ken Rockot(use gerrit already) 2014/03/07 07:07:09 Done.
264 return self._file_system.Exists(path)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698