Source

fossconf / web / urls.py

Full commit


from django.conf.urls.defaults import *
from conference.web.models import Talk, Delegate, Volunteer, Slot, Tag_Colour
from tagging.views import tagged_object_list
from conference.web.feeds import feeds_dict

urlpatterns = patterns('conference.web.views',
    url(r'^$', 'index', name='index'),
    url(r'^posts/$', 'posts', name='posts'),
    url(r'^postsfull/(?P<id>\d+)/$', 'postsfull', name='post_by_id'),
    url(r'^base/(?P<menu>[\w\s]+)/$', 'staticpage', name='static_page'),
    #url(r'^adduser/(?P<code>\d+)/$', 'adduser', name='add_user'),
    url(r'^delegates/$','delegates', name='delegates'),
    url(r'^delegatefull/(?P<id>\d+)/$', 'delegatefull', name='delegate_by_id'),
    url(r'^edituser/$', 'edituser', name='edit_user'),
    url(r'^register/$', 'register', name='register'),
    url(r'^regthank/(?P<id>\d+)/$', 'regthank', name='reg_thank'),
    url(r'^statistics/$', 'statistics', name='statistics'),
    url(r'^schedule/$', 'schedule', name='schedule'),
    url(r'^browseslides/$', 'browseslides', name='browse_slides'),
    url(r'^displayschedule/$', 'displayschedule', name='display_schedule'),
    url(r'^halldayschedule/(?P<day>\d+)/(?P<hall>\d+)/$', 'halldayschedule', name='hall_day_schedule'),
    url(r'^deleteslot/(?P<slot>\d+)/$', 'deleteslot', name='delete_slot'),
    url(r'^sorry/$', 'sorry', name='sorry'),
    url(r'^idcard/$', 'idcard', name='idcard'),
    url(r'^getdelegates/$', 'get_delegates', name='getdelegates'),
    #talk
    url(r'^talks/$', 'talks', name='talks'),
    url(r'^talkfull/(?P<id>\d+)/$', 'talkfull', name='talk_by_id'),
    url(r'^addtalk/$', 'addtalk', name='add_talk'),
    url(r'^edittalk/(?P<id>\d+)/$', 'edittalk', name='edit_talk'),
    url(r'^managetalks/$', 'managetalks', name='manage_talks'),
    url(r'^cloud_list/$',  'cloud_list', name='cloud_list'),
    #volunteer
    url(r'^volunteers/$', 'volunteers', name='volunteers'),
    url(r'^addvolunteer/$', 'addvolunteer', name='add_volunteers'),
    url(r'^volunteerfull/(?P<id>\d+)/$', 'volunteerfull', name='volunteer_by_id'),
    url(r'^message/(?P<msg>[\w\s]+)/$', 'message', name='message'),
    #request talk
    url(r'^requesttalk/$', 'requesttalk', name='request_talk'),
    url(r'^addreqtalk/((?P<id>\d+)/)?$', 'addreqtalk', name='add_request_talk'),
    #bulkmail
    url(r'^bulkmail/((?P<sstr>\w+)/)?$', 'bulkmail', name='bulk_mail'),
    url(r'^mailsent/$', 'mailsent', name='mail_sent'),
    #tags support
    url(r'^talks/tag/(?P<tag>[^/]+(?u))/$', tagged_object_list, 
        dict(queryset_or_model=Talk, allow_empty=True, template_object_name='lst', 
             template_name='web/talks.html',
             extra_context = {'tag_colours': Tag_Colour.objects.all(),
                              'scheduled': Slot.objects.all()}), 
        name='talk_by_tag'),
    #speaker list
    url(r'^speakerlist/', 'speakerlist', name='speaker_list')
    )

urlpatterns += patterns('',
    #feeds
    url(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',{'feed_dict': feeds_dict,},
        name='feed_by_url'),
)