Merge "Invoke the has_more_data function of tables when loading TableTab. This allows classes extending TableTab to support pagination."

This commit is contained in:
Jenkins 2013-01-30 09:41:04 +00:00 committed by Gerrit Code Review
commit b6dac7c6c4

View File

@ -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