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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-12-05 14:39:15 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20131205143915-40991ba69inywk0u
Tags: 1:2014.1~b1-0ubuntu1
* New upstream release.
* debian/control: open icehouse release.
* debian/static/openstack-dashboard: Refreshed static assets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from horizon import exceptions
25
25
from openstack_dashboard import api
26
26
from openstack_dashboard.dashboards.admin.networks import views as n_views
 
27
from openstack_dashboard.dashboards.admin.routers import tables as rtbl
 
28
from openstack_dashboard.dashboards.admin.routers import tabs as rtabs
27
29
from openstack_dashboard.dashboards.project.routers import views as r_views
28
30
 
29
 
from openstack_dashboard.dashboards.admin.routers.ports \
30
 
    import tables as ports_tables
31
 
from openstack_dashboard.dashboards.admin.routers import tables
32
 
 
33
31
 
34
32
class IndexView(r_views.IndexView, n_views.IndexView):
35
 
    table_class = tables.RoutersTable
 
33
    table_class = rtbl.RoutersTable
36
34
    template_name = 'admin/routers/index.html'
37
35
 
38
36
    def _get_routers(self, search_opts=None):
62
60
 
63
61
 
64
62
class DetailView(r_views.DetailView):
65
 
    table_classes = (ports_tables.PortsTable, )
 
63
    tab_group_class = rtabs.RouterDetailTabs
66
64
    template_name = 'admin/routers/detail.html'
67
65
    failure_url = reverse_lazy('horizon:admin:routers:index')