4 # The cache is only used to be able to change delegates!
6 def __init__(self
, delegate
=None):
7 self
.delegate
= delegate
10 def __getattr__(self
, name
):
11 attr
= getattr(self
.delegate
, name
) # May raise AttributeError
12 setattr(self
, name
, attr
)
13 self
.__cache
[name
] = attr
17 for key
in self
.__cache
.keys():
20 except AttributeError:
24 def cachereport(self
):
25 keys
= self
.__cache
.keys()
29 def setdelegate(self
, delegate
):
31 self
.delegate
= delegate
33 def getdelegate(self
):