~ubuntu-branches/ubuntu/saucy/horizon/saucy-updates

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/project/routers/views.py

  • Committer: Package Import Robot
  • Author(s): James Page, James Page, Chuck Short
  • Date: 2013-10-03 13:48:12 UTC
  • mfrom: (1.1.31)
  • Revision ID: package-import@ubuntu.com-20131003134812-2vkwosem4flwuk5y
Tags: 1:2013.2~rc1-0ubuntu1
[ James Page ]
* New upstream release candidate:
  - d/static: Refreshed static assets for 2013.2~rc1.
  - d/patches: Refreshed patches.

[ Chuck Short ]
* debian/control: Add python-lesscpy as a suggests to optionally
  support online compression of static assets (LP: #1226674).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
Views for managing Neutron Routers.
19
19
"""
20
20
 
21
 
import logging
22
 
 
23
21
from django.core.urlresolvers import reverse_lazy  # noqa
24
22
from django.utils.datastructures import SortedDict  # noqa
25
23
from django.utils.translation import ugettext_lazy as _  # noqa
37
35
    import tables as project_tables
38
36
 
39
37
 
40
 
LOG = logging.getLogger(__name__)
41
 
 
42
 
 
43
38
class IndexView(tables.DataTableView):
44
39
    table_class = project_tables.RoutersTable
45
40
    template_name = 'project/routers/index.html'
104
99
                router.set_id_as_name_if_empty(length=0)
105
100
            except Exception:
106
101
                msg = _('Unable to retrieve details for router "%s".') \
107
 
                        % (router_id)
 
102
                    % (router_id)
108
103
                exceptions.handle(self.request, msg, redirect=self.failure_url)
109
104
 
110
105
            if router.external_gateway_info: