[entropy.db] EntropyRepository: implement basic __hash__ builtin method

This commit is contained in:
Fabio Erculiani
2010-02-02 16:33:02 +01:00
parent 5ede4afc4e
commit dfa7b75d4f
+3 -1
View File
@@ -520,7 +520,6 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
self.initializeDatabase()
return cursor
def _connection(self):
self._cleanup_stale_cur_conn()
c_key = self._get_cur_th_key()
@@ -552,6 +551,9 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
def __unicode__(self):
return self.__show_info()
def __hash__(self):
return id(self)
def setCacheSize(self, size):
"""
Change low-level, storage engine based cache size.