mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow using db.new_api on the new_api recursively
This commit is contained in:
parent
87832d2275
commit
51b21ebe15
@ -125,6 +125,10 @@ class Cache(object):
|
|||||||
self._search_api = Search(self, 'saved_searches', self.field_metadata.get_search_terms())
|
self._search_api = Search(self, 'saved_searches', self.field_metadata.get_search_terms())
|
||||||
self.initialize_dynamic()
|
self.initialize_dynamic()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def new_api(self):
|
||||||
|
return self
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def safe_read_lock(self):
|
def safe_read_lock(self):
|
||||||
''' A safe read lock is a lock that does nothing if the thread already
|
''' A safe read lock is a lock that does nothing if the thread already
|
||||||
|
Loading…
x
Reference in New Issue
Block a user