diff options
author | Lin Hua Cheng <lin-hua.cheng@hp.com> | 2013-01-28 23:31:31 -0800 |
---|---|---|
committer | Lin Hua Cheng <lin-hua.cheng@hp.com> | 2013-01-28 23:35:09 -0800 |
commit | f56a346b78a49ed73d64044cca182a7346bcb552 (patch) | |
tree | 7cce18a8b9aff7f1f7390840b714136bd5baa73a /horizon/tabs | |
parent | 59b7e6011b0c392a29a06e736e42b0277ab3e719 (diff) | |
download | horizon-f56a346b78a49ed73d64044cca182a7346bcb552.tar.gz |
Invoke the has_more_data function of tables when loading TableTab.
This allows classes extending TableTab to support pagination.
Fixes bug 1108195.
Change-Id: I4331aa66f0686f9991eb56721564a12248411a1f
Diffstat (limited to 'horizon/tabs')
-rw-r--r-- | horizon/tabs/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/horizon/tabs/base.py b/horizon/tabs/base.py index d0c8ea6f1..3ff0c1ea1 100644 --- a/horizon/tabs/base.py +++ b/horizon/tabs/base.py @@ -432,6 +432,7 @@ class TableTab(Tab): "on %s." % (func_name, cls_name)) # Load the data. table.data = data_func() + table._meta.has_more_data = self.has_more_data(table) # Mark our data as loaded so we don't run the loaders again. self._table_data_loaded = True @@ -453,3 +454,6 @@ class TableTab(Tab): context["table"] = table context["%s_table" % table_name] = table return context + + def has_more_data(self, table): + return False |