parameters of datatable in tabletab can't store in session
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I use datatable in a tabletab, I use filter_type = "server" and filter_choices = (('hostname', _("host name"), True),). Then I can't get the data from table. However, it is just OK in datatable directly in view.
I read about source code and write my filter function as below:
def get_filters(self, filters):
if filter_action:
if filter_
if filter_field and filter_string:
return filters
I print the self._tables.
def get_filter_
"""Get the filter field value used for 'server' type filters. This
is the value from the filter action's list of filter choices.
"""
param_name = '%s_field' % filter_
return filter_field
I print param_name and it is the field from the website. Then I know filter_field is get from the session according to the code note. I print the session(with __dict__) but it doesn't have a field called '*__q_field'(* is short for my table name), so I wonder if the parameters are stored in session as the code note said.
Can anyone give me any advice?
tags: | added: datatable tabletab |
summary: |
- datatable in tabletab can't store in session + parameters of datatable in tabletab can't store in session |
information type: | Public → Public Security |
information type: | Public Security → Public |
Please use the #openstack-horizon IRC channel for help requests (https:/ /wiki.openstack .org/wiki/ IRC).