~ubuntu-branches/ubuntu/trusty/horizon/trusty

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/project/containers/tables.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-03-31 17:31:49 UTC
  • mfrom: (1.1.38)
  • Revision ID: package-import@ubuntu.com-20140331173149-f28yjk2s8pt15fqj
Tags: 1:2014.1~rc1-0ubuntu1
* New upstream release candidate (LP: #1288245).
  - d/static/*: Refreshed assets for new upstream release.
* d/theme/*: Refresh Ubuntu theme against Icehouse templates (LP: #1291653).

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
                             verbose_name=_("Container Details"),
248
248
                             classes=('nowrap-col', ),)
249
249
    metadata_loaded = tables.Column(get_metadata_loaded,
250
 
                                    verbose_name=_("Metadata Loaded"),
251
250
                                    status=True,
252
251
                                    status_choices=METADATA_LOADED_CHOICES,
253
252
                                    hidden=True)
270
269
        url = super(ContainersTable, self).get_absolute_url()
271
270
        return http.urlquote(url)
272
271
 
 
272
    def get_full_url(self):
 
273
        """Returns the encoded absolute URL path with its query string.
 
274
 
 
275
        This is used for the POST action attribute on the form element
 
276
        wrapping the table. We use this method to persist the
 
277
        pagination marker.
 
278
 
 
279
        """
 
280
        url = super(ContainersTable, self).get_full_url()
 
281
        return http.urlquote(url)
 
282
 
273
283
 
274
284
class ViewObject(tables.LinkAction):
275
285
    name = "view"
417
427
    def get_absolute_url(self):
418
428
        url = super(ObjectsTable, self).get_absolute_url()
419
429
        return http.urlquote(url)
 
430
 
 
431
    def get_full_url(self):
 
432
        """Returns the encoded absolute URL path with its query string.
 
433
 
 
434
        This is used for the POST action attribute on the form element
 
435
        wrapping the table. We use this method to persist the
 
436
        pagination marker.
 
437
 
 
438
        """
 
439
        url = super(ObjectsTable, self).get_full_url()
 
440
        return http.urlquote(url)