diff options
author | Gabriel Hurley <gabriel@strikeawe.com> | 2012-10-23 22:25:18 -0700 |
---|---|---|
committer | Gabriel Hurley <gabriel@strikeawe.com> | 2012-10-24 12:53:42 -0700 |
commit | cdcd8e3df6ee143cc96b5e2a2d849e9ae8e86148 (patch) | |
tree | 01c51450f3ac0b66c98addb6c30ac2237f9d1bf6 /horizon/utils/memoized.py | |
parent | a0ad0d49a97da8a0fcee1636dce00c1ae940d6f9 (diff) | |
download | horizon-cdcd8e3df6ee143cc96b5e2a2d849e9ae8e86148.tar.gz |
Enable quota data from multiple sources.
Now that there are multiple projects with quota data (cinder, quantum)
we need to accommodate that data being aggregated in a centralized
fashion. This commit takes care of that for nova + cinder, and paves
the way for quantum later.
Fixes bug 1070022.
Change-Id: Ifc68c2dc681b2a7b4e7787e0b1a7dca1a970fc36
Diffstat (limited to 'horizon/utils/memoized.py')
-rw-r--r-- | horizon/utils/memoized.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/horizon/utils/memoized.py b/horizon/utils/memoized.py index 0c260ddc2..c3d7e7c56 100644 --- a/horizon/utils/memoized.py +++ b/horizon/utils/memoized.py @@ -45,3 +45,6 @@ class memoized(object): def __get__(self, obj, objtype): '''Support instance methods.''' return functools.partial(self.__call__, obj) + + def __str__(self): + return str(self.func) |