django.conf.urls.patterns() is deprecated since 1.8
We should not use pattern function from url module, so this patch updates URLs to 1.8 style. Change-Id: I3d362cad6aea22cf49a294104b4c915f81ccc51a
This commit is contained in:
parent
3a8f130f9f
commit
ccb1c3831b
|
@ -12,13 +12,11 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import patterns
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from cloudkittydashboard.dashboards.admin.hashmap import views
|
from cloudkittydashboard.dashboards.admin.hashmap import views
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = [
|
||||||
'',
|
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
url(r'^service/(?P<service_id>[^/]+)/?$',
|
url(r'^service/(?P<service_id>[^/]+)/?$',
|
||||||
views.ServiceView.as_view(),
|
views.ServiceView.as_view(),
|
||||||
|
@ -65,4 +63,4 @@ urlpatterns = patterns(
|
||||||
url(r'^edit_threshold/field/(?P<threshold_id>[^/]+)/?$',
|
url(r'^edit_threshold/field/(?P<threshold_id>[^/]+)/?$',
|
||||||
views.FieldThresholdEditView.as_view(),
|
views.FieldThresholdEditView.as_view(),
|
||||||
name='field_threshold_edit'),
|
name='field_threshold_edit'),
|
||||||
)
|
]
|
||||||
|
|
|
@ -12,17 +12,15 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import patterns
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from cloudkittydashboard.dashboards.admin.modules import views
|
from cloudkittydashboard.dashboards.admin.modules import views
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = [
|
||||||
'',
|
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
url(r'^(?P<module_id>[^/]+)/?$', views.ModuleDetailsView.as_view(),
|
url(r'^(?P<module_id>[^/]+)/?$', views.ModuleDetailsView.as_view(),
|
||||||
name="module_details"),
|
name="module_details"),
|
||||||
url(r'^edit_priority/(?P<module_id>[^/]+)/?$',
|
url(r'^edit_priority/(?P<module_id>[^/]+)/?$',
|
||||||
views.PriorityModuleEditView.as_view(),
|
views.PriorityModuleEditView.as_view(),
|
||||||
name="edit_priority"),
|
name="edit_priority"),
|
||||||
)
|
]
|
||||||
|
|
|
@ -12,17 +12,15 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import patterns
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from cloudkittydashboard.dashboards.admin.pyscripts import views
|
from cloudkittydashboard.dashboards.admin.pyscripts import views
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = [
|
||||||
'',
|
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
url(r'^create/?$', views.ScriptCreateView.as_view(), name="script_create"),
|
url(r'^create/?$', views.ScriptCreateView.as_view(), name="script_create"),
|
||||||
url(r'^update/(?P<script_id>[^/]+)/?$', views.ScriptUpdateView.as_view(),
|
url(r'^update/(?P<script_id>[^/]+)/?$', views.ScriptUpdateView.as_view(),
|
||||||
name="script_update"),
|
name="script_update"),
|
||||||
url(r'^(?P<script_id>[^/]+)/?$', views.ScriptDetailsView.as_view(),
|
url(r'^(?P<script_id>[^/]+)/?$', views.ScriptDetailsView.as_view(),
|
||||||
name="script_details"),
|
name="script_details"),
|
||||||
)
|
]
|
||||||
|
|
|
@ -12,13 +12,11 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.conf.urls import patterns
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from cloudkittydashboard.dashboards.project.rating import views
|
from cloudkittydashboard.dashboards.project.rating import views
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = [
|
||||||
'',
|
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
url(r'^quote$', views.quote, name='quote')
|
url(r'^quote$', views.quote, name='quote')
|
||||||
)
|
]
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
from django.conf.urls import patterns
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from cloudkittydashboard.dashboards.project.reporting import views
|
from cloudkittydashboard.dashboards.project.reporting import views
|
||||||
|
|
||||||
urlpatterns = patterns(
|
urlpatterns = [
|
||||||
'',
|
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
)
|
]
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
from django.conf.urls import patterns # noqa
|
|
||||||
from django.conf.urls import url # noqa
|
from django.conf.urls import url # noqa
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from openstack_dashboard.dashboards.project.instances.workflows \
|
from openstack_dashboard.dashboards.project.instances.workflows \
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# The order of packages is significant, because pip processes them in the order
|
# The order of packages is significant, because pip processes them in the order
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
pbr>=1.6
|
|
||||||
|
pbr!= 2.1.0,>=2.0.0
|
||||||
Babel>=1.3
|
Babel>=1.3
|
||||||
python-cloudkittyclient>=0.5.0
|
python-cloudkittyclient>=0.5.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue