[extensions-web: 3/75] Use raw strings in urls.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web: 3/75] Use raw strings in urls.
- Date: Fri, 23 Sep 2011 03:14:41 +0000 (UTC)
commit 3c326169fba07301ba16dcabf4f95e871d336bb5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Sep 9 16:51:12 2011 -0400
Use raw strings in urls.
sweettooth/extensions/urls.py | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/sweettooth/extensions/urls.py b/sweettooth/extensions/urls.py
index 7835755..3cc97bc 100644
--- a/sweettooth/extensions/urls.py
+++ b/sweettooth/extensions/urls.py
@@ -10,11 +10,11 @@ upload_patterns = patterns('',
)
ajax_patterns = patterns('',
- url('^i/(?P<pk>\d+)', views.AjaxInlineEditView.as_view(), name='extensions-ajax-inline'),
- url('^l/(?P<pk>\d+)', views.AjaxSubmitAndLockView.as_view(), name='extensions-ajax-submit'),
- url('^us/(?P<pk>\d+)', views.AjaxImageUploadView.as_view(field='screenshot'), name='extensions-ajax-screenshot'),
- url('^ui/(?P<pk>\d+)', views.AjaxImageUploadView.as_view(field='icon'), name='extensions-ajax-icon'),
- url('^d/', views.AjaxDetailsView.as_view(), name='extensions-ajax-details'),
+ url(r'^i/(?P<pk>\d+)', views.AjaxInlineEditView.as_view(), name='extensions-ajax-inline'),
+ url(r'^l/(?P<pk>\d+)', views.AjaxSubmitAndLockView.as_view(), name='extensions-ajax-submit'),
+ url(r'^us/(?P<pk>\d+)', views.AjaxImageUploadView.as_view(field='screenshot'), name='extensions-ajax-screenshot'),
+ url(r'^ui/(?P<pk>\d+)', views.AjaxImageUploadView.as_view(field='icon'), name='extensions-ajax-icon'),
+ url(r'^d/', views.AjaxDetailsView.as_view(), name='extensions-ajax-details'),
)
@@ -35,8 +35,8 @@ urlpatterns = patterns('',
url(r'^download-extension/(?P<uuid>.+)\.shell-extension\.zip$',
views.download, name='extensions-download'),
- url('^upload/', include(upload_patterns)),
- url('^ajax/', include(ajax_patterns)),
+ url(r'^upload/', include(upload_patterns)),
+ url(r'^ajax/', include(ajax_patterns)),
url(r'local/', TemplateView.as_view(template_name="extensions/local.html"), name='extensions-local'),
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]