Allow using db.new_api on the new_api recursively

This commit is contained in:
Kovid Goyal 2015-03-16 17:42:10 +05:30
parent 87832d2275
commit 51b21ebe15

View File

@ -125,6 +125,10 @@ class Cache(object):
self._search_api = Search(self, 'saved_searches', self.field_metadata.get_search_terms())
self.initialize_dynamic()
@property
def new_api(self):
return self
@property
def safe_read_lock(self):
''' A safe read lock is a lock that does nothing if the thread already