horizon/openstack_dashboard/dashboards/project/routers/ports
Radomir Dopieralski b7537a8b81 Use memoized_method decorator in views
A lot of horizon's views use the pattern:

    def get_data(self):
        if not hasattr(self, "_data"):
            # Calculate data here.
            self._data = data
        return self._data

This is copy-pasted all over the codebase. It's better to handle that
with a single decorator. In the future, we might even replace it with
some better caching approach.

Closes-bug: #1248230
Change-Id: Id021fccf9032e5068993ec91a7774a5d0fbf29bb
2013-12-18 16:46:30 +01:00
..
__init__.py Support Quantum L3 function 2013-01-07 20:24:57 -08:00
forms.py Enable H302 check 2013-08-22 17:39:09 +04:00
tables.py Enable H302 check 2013-08-22 17:39:09 +04:00
tabs.py Remove unused LOG 2013-09-28 23:57:13 -07:00
urls.py Fix django.conf.urls.defaults imports 2013-11-04 17:10:57 +11:00
views.py Use memoized_method decorator in views 2013-12-18 16:46:30 +01:00