summaryrefslogtreecommitdiff
path: root/helsinki/program/urls_program.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-13 18:53:29 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-13 18:53:29 (GMT)
commit103a909a999ecb8e2bce2cf84e4ec39968223a53 (patch)
treee219a86a6b468b736a47f21061916b114be54427 /helsinki/program/urls_program.py
parentba41badf0171cd618034e4c9eb21893eaf1ccd90 (diff)
getting real.
Diffstat (limited to 'helsinki/program/urls_program.py')
-rw-r--r--helsinki/program/urls_program.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/helsinki/program/urls_program.py b/helsinki/program/urls_program.py
deleted file mode 100644
index a93db83..0000000
--- a/helsinki/program/urls_program.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from django.conf.urls.defaults import *
-
-from django.views.generic.list_detail import object_detail, object_list
-
-from models import BroadcastFormat, Host, Show, TimeSlot
-from views import current_show, day_schedule, recommendations, show_list, week_schedule
-
-host_dict = {
- 'queryset': Host.objects.all(),
- 'template_object_name': 'host'
-}
-show_dict = {
- 'queryset': Show.objects.all(),
- 'template_object_name': 'show'
-}
-timeslot_dict = {
- 'queryset': TimeSlot.objects.all(),
- 'template_object_name': 'timeslot'
-}
-recommendation_dict = {'template_name': 'program/recommendations_box.html'}
-
-urlpatterns = patterns('',
- (r'^today/?$', day_schedule),
- (r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/?$', day_schedule),
- (r'^(?P<year>\d{4})/(?P<week>\d{1,2})/?$', week_schedule),
- (r'^current_box/?$', current_show),
- (r'^hosts/?$', object_list, host_dict),
- url(r'^hosts/(?P<object_id>\d+)/?$', object_detail, host_dict, name='host-detail'),
- (r'^tips/?$', recommendations),
- (r'^tips_box/?$', recommendations, recommendation_dict),
- (r'^shows/?$', show_list),
- url(r'^shows/(?P<slug>[\w-]+)/?$', object_detail, show_dict, name='show-detail'),
- url(r'^(?P<object_id>\d+)/?$', object_detail, timeslot_dict, name='timeslot-detail'),
- (r'^week/?$', week_schedule)
-)