move __name to static attribute of CacheItem class

This commit is contained in:
Yann Leboulanger 2008-04-21 13:16:41 +00:00
parent ab6d9e5003
commit 0527b7e0ea
1 changed files with 1 additions and 1 deletions

View File

@ -89,11 +89,11 @@ class CapsCache(object):
# to CapsCacheItem object # to CapsCacheItem object
# __CacheItem is a class that stores data about particular # __CacheItem is a class that stores data about particular
# client (node/version pair) # client (node/version pair)
self.__names = {}
self.__cache = {} self.__cache = {}
class CacheItem(object): class CacheItem(object):
''' TODO: logging data into db ''' ''' TODO: logging data into db '''
self.__names = {}
def __init__(ciself, hash_method, hash): def __init__(ciself, hash_method, hash):
# cached into db # cached into db
ciself.hash_method = hash_method ciself.hash_method = hash_method