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

Unified Diff: chrome/common/extensions/docs/server2/data_source.py

Issue 1151283007: Docserver overhaul: Gitiles away from me. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove inform_users template to fix presubmit failure (it's now a redirect) Created 5 years, 6 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
Index: chrome/common/extensions/docs/server2/data_source.py
diff --git a/chrome/common/extensions/docs/server2/data_source.py b/chrome/common/extensions/docs/server2/data_source.py
index ba0dfb48a290ff3fefb0a410e6e5edb2ac052265..a5036559dd0f6c141d9b7c5b22a75d1f6d147028 100644
--- a/chrome/common/extensions/docs/server2/data_source.py
+++ b/chrome/common/extensions/docs/server2/data_source.py
@@ -19,17 +19,11 @@ class DataSource(object):
def __init__(self, server_instance, request):
pass
- def GetRefreshPaths(self):
- '''Returns a list of paths to query
- (relative to _refresh/<data_source_name>/) with the task queue in order
- to refresh this DataSource's data set. Any paths listed here will be
- routed to the DataSource Refresh method in a taskqueue task request.
+ def Refresh(self):
+ '''Refreshes the cache of data this source provides. Should return a Future
+ which resolves to a boolean indicating the success or failure of the
+ refresh.
'''
- return ['']
-
- def Refresh(self, path=None):
- '''Handles _refresh requests to this DataSource. Should return a Future
- indicating the success or failure of the refresh.'''
raise NotImplementedError(self.__class__)
def get(self, key):
« no previous file with comments | « chrome/common/extensions/docs/server2/custom_logger.py ('k') | chrome/common/extensions/docs/server2/datastore_models.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698