diff --git a/neutron_taas_dashboard/dashboards/project/tapservices/tapflows/urls.py b/neutron_taas_dashboard/dashboards/project/tapservices/tapflows/urls.py index 3eafb00..55cde59 100644 --- a/neutron_taas_dashboard/dashboards/project/tapservices/tapflows/urls.py +++ b/neutron_taas_dashboard/dashboards/project/tapservices/tapflows/urls.py @@ -12,7 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -from django.conf.urls import patterns from django.conf.urls import url from neutron_taas_dashboard.dashboards.project.tapservices.tapflows \ @@ -20,9 +19,7 @@ from neutron_taas_dashboard.dashboards.project.tapservices.tapflows \ TAP_FLOWS = r'^(?P[^/]+)/%s$' -VIEW_MOD = 'openstack_dashboard.dashboards.project.tapservices.tapflows.views' -urlpatterns = patterns( - VIEW_MOD, +urlpatterns = [ url(TAP_FLOWS % 'detail', views.DetailView.as_view(), name='detail'), -) +] diff --git a/neutron_taas_dashboard/dashboards/project/tapservices/urls.py b/neutron_taas_dashboard/dashboards/project/tapservices/urls.py index 82b50c5..1bc116c 100644 --- a/neutron_taas_dashboard/dashboards/project/tapservices/urls.py +++ b/neutron_taas_dashboard/dashboards/project/tapservices/urls.py @@ -13,7 +13,6 @@ # under the License. from django.conf.urls import include -from django.conf.urls import patterns from django.conf.urls import url from neutron_taas_dashboard.dashboards.project.tapservices.tapflows \ @@ -25,12 +24,11 @@ from neutron_taas_dashboard.dashboards.project.tapservices \ TAP_SERVICES = r'^(?P[^/]+)/%s$' -urlpatterns = patterns( - '', +urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^create/$', views.CreateView.as_view(), name='create'), url(TAP_SERVICES % 'detail', views.DetailView.as_view(), name='detail'), url(TAP_SERVICES % 'tapflows/create', tf_views.CreateView.as_view(), name='createtapflow'), url(r'^tapflows/', include(tapflow_urls, namespace='tapflows')), -) +] diff --git a/neutron_taas_dashboard/version.py b/neutron_taas_dashboard/version.py new file mode 100644 index 0000000..caf839d --- /dev/null +++ b/neutron_taas_dashboard/version.py @@ -0,0 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +import pbr.version + +version_info = pbr.version.VersionInfo('neutron_taas_dashboard')