[extensions-web: 4/75] Move URLs that the Shell hits into shell_patterns, and add 'extension-info'
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web: 4/75] Move URLs that the Shell hits into shell_patterns, and add 'extension-info'
- Date: Fri, 23 Sep 2011 03:14:46 +0000 (UTC)
commit 856de642c9ed97f696aa0ff1ae1bdd9665cda016
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Sep 9 17:01:05 2011 -0400
Move URLs that the Shell hits into shell_patterns, and add 'extension-info'
This is the same as AjaxDetailsView, for now.
sweettooth/extensions/urls.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/extensions/urls.py b/sweettooth/extensions/urls.py
index 3cc97bc..e677a4f 100644
--- a/sweettooth/extensions/urls.py
+++ b/sweettooth/extensions/urls.py
@@ -17,6 +17,12 @@ ajax_patterns = patterns('',
url(r'^d/', views.AjaxDetailsView.as_view(), name='extensions-ajax-details'),
)
+shell_patterns = patterns('',
+ url(r'^extension-info/', views.AjaxDetailsView.as_view()),
+
+ url(r'^download-extension/(?P<uuid>.+)\.shell-extension\.zip$',
+ views.download),
+)
urlpatterns = patterns('',
url(r'^$', ListView.as_view(queryset=models.Extension.objects.visible(),
@@ -32,11 +38,9 @@ urlpatterns = patterns('',
url(r'^extension/(?P<pk>\d+)/$',
views.ExtensionLatestVersionView.as_view(), dict(slug=None), name='extensions-detail'),
- url(r'^download-extension/(?P<uuid>.+)\.shell-extension\.zip$',
- views.download, name='extensions-download'),
-
url(r'^upload/', include(upload_patterns)),
url(r'^ajax/', include(ajax_patterns)),
+ url(r'', include(shell_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]