mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Missing legacy API
This commit is contained in:
parent
934d4ba258
commit
e01a3a263d
@ -1541,6 +1541,10 @@ class Cache(object):
|
|||||||
def saved_search_rename(self, old_name, new_name):
|
def saved_search_rename(self, old_name, new_name):
|
||||||
self._search_api.saved_searches.rename(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): # {{{
|
class SortKey(object): # {{{
|
||||||
|
@ -290,6 +290,9 @@ class View(object):
|
|||||||
def get_search_restriction_book_count(self):
|
def get_search_restriction_book_count(self):
|
||||||
return self.search_restriction_book_count
|
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):
|
def set_marked_ids(self, id_dict):
|
||||||
'''
|
'''
|
||||||
ids in id_dict are "marked". They can be searched for by
|
ids in id_dict are "marked". They can be searched for by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user