entropy.client.interfaces.methods: new method is_repository_connection_cached

This commit is contained in:
Fabio Erculiani
2009-04-14 23:48:10 +02:00
parent 62ec9712b9
commit 670be42e8d

View File

@@ -98,6 +98,11 @@ class RepositoryMixin:
self.__repodb_cache.clear()
if mask_clear: self.SystemSettings.clear()
def is_repository_connection_cached(self, repoid):
if (repoid,etpConst['systemroot'],) in self.__repodb_cache:
return True
return False
def open_repository(self, repoid):
if not self.__repodb_cache.has_key((repoid,etpConst['systemroot'],)):