Missing legacy API

This commit is contained in:
Kovid Goyal 2013-07-19 21:24:39 +05:30
parent 934d4ba258
commit e01a3a263d
2 changed files with 7 additions and 0 deletions

View File

@ -1541,6 +1541,10 @@ class Cache(object):
def saved_search_rename(self, old_name, new_name):
self._search_api.saved_searches.rename(old_name, new_name)
@write_api
def change_search_locations(self, newlocs):
self._search_api.change_locations(newlocs)
# }}}
class SortKey(object): # {{{

View File

@ -290,6 +290,9 @@ class View(object):
def get_search_restriction_book_count(self):
return self.search_restriction_book_count
def change_search_locations(self, newlocs):
self.cache.change_search_locations(newlocs)
def set_marked_ids(self, id_dict):
'''
ids in id_dict are "marked". They can be searched for by