aboutsummaryrefslogtreecommitdiffstats
path: root/servo/urls/search.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/urls/search.py
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/urls/search.py')
-rw-r--r--servo/urls/search.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/servo/urls/search.py b/servo/urls/search.py
new file mode 100644
index 0000000..dcd7821
--- /dev/null
+++ b/servo/urls/search.py
@@ -0,0 +1,27 @@
+from django.conf.urls import patterns, url
+from django.views.decorators.cache import cache_page
+
+from servo.views.search import search_gsx
+
+urlpatterns = patterns(
+ "servo.views.search",
+ url(r'^$', "spotlight",
+ name="search-spotlight"),
+ url(r'^gsx/(?P<what>\w+)/$', "list_gsx",
+ name="search-gsx"),
+ url(r'^gsx/(?P<what>\w+)/for/(?P<q>\w+)/$', "list_gsx",
+ name="search-gsx"),
+ # /search/gsx/parts/?productName=iPod+Shuffle...
+ url(r'^gsx/(?P<what>\w+)/(?P<arg>\w+)/(?P<value>[~\w\s,\-\(\)/\.]+)/$',
+ cache_page(60*15)(search_gsx),
+ name="search-search_gsx"),
+ url(r'^gsx/(?P<what>\w+)/results/$', "view_gsx_results",
+ name="search-gsx_results"),
+ url(r'^notes/$', "list_notes"),
+ url(r'^products/$', "list_products"),
+ url(r'^orders/$', "list_orders"),
+ url(r'^customers/$', "list_customers"),
+ url(r'^devices/$', "list_devices"),
+ url(r'^gsx/$', "list_gsx"),
+ url(r'^articles/$', "list_articles"),
+)