summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/containers
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-21 14:43:10 +0000
committerGerrit Code Review <review@openstack.org>2014-03-21 14:43:10 +0000
commit9dba2cfa41eb20fabc9d68924229812415225053 (patch)
tree7d62ff878f25e47c7bccd47b3c00dde307d50585 /openstack_dashboard/dashboards/project/containers
parent537dbacdcc316a60fe7c456d9a96f773c9c73948 (diff)
parente95a04733d463658f3ca87e9df213b8e1dd0326d (diff)
downloadhorizon-9dba2cfa41eb20fabc9d68924229812415225053.tar.gz
Merge "Selected instances are not deleted with pagination"
Diffstat (limited to 'openstack_dashboard/dashboards/project/containers')
-rw-r--r--openstack_dashboard/dashboards/project/containers/tables.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/openstack_dashboard/dashboards/project/containers/tables.py b/openstack_dashboard/dashboards/project/containers/tables.py
index c8acc3c2a..a14c880b0 100644
--- a/openstack_dashboard/dashboards/project/containers/tables.py
+++ b/openstack_dashboard/dashboards/project/containers/tables.py
@@ -269,6 +269,17 @@ class ContainersTable(tables.DataTable):
url = super(ContainersTable, self).get_absolute_url()
return http.urlquote(url)
+ def get_full_url(self):
+ """Returns the encoded absolute URL path with its query string.
+
+ This is used for the POST action attribute on the form element
+ wrapping the table. We use this method to persist the
+ pagination marker.
+
+ """
+ url = super(ContainersTable, self).get_full_url()
+ return http.urlquote(url)
+
class ViewObject(tables.LinkAction):
name = "view"
@@ -416,3 +427,14 @@ class ObjectsTable(tables.DataTable):
def get_absolute_url(self):
url = super(ObjectsTable, self).get_absolute_url()
return http.urlquote(url)
+
+ def get_full_url(self):
+ """Returns the encoded absolute URL path with its query string.
+
+ This is used for the POST action attribute on the form element
+ wrapping the table. We use this method to persist the
+ pagination marker.
+
+ """
+ url = super(ObjectsTable, self).get_full_url()
+ return http.urlquote(url)