Skip to content

Commit

Permalink
Merge "Invoke the has_more_data function of tables when loading Table…
Browse files Browse the repository at this point in the history
…Tab. This allows classes extending TableTab to support pagination."
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 30, 2013
2 parents 3ed82eb + f56a346 commit b6dac7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions horizon/tabs/base.py
Expand Up @@ -432,6 +432,7 @@ def load_table_data(self):
"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

Expand All @@ -453,3 +454,6 @@ def get_context_data(self, request):
context["table"] = table
context["%s_table" % table_name] = table
return context

def has_more_data(self, table):
return False

0 comments on commit b6dac7c

Please sign in to comment.