예제 #1
0
파일: urls.py 프로젝트: TamaraCopple/kcdc3
from django.conf.urls import patterns, include, url
from models import Meeting
from views import MeetingListView, MeetingDetailView, ResponseTemplateView

urlpatterns = patterns('kcdc3.apps.squirrel.views',

	url(r'^$', 'home'),
	url(r'^meetings/$', MeetingListView.as_view()),
	url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$', ResponseTemplateView.as_view()),
	url(r'^meetings/(?P<slug>[A-Za-z0-9_-]+)/$', MeetingDetailView.as_view(model=Meeting,)),
	url(r'^meetings/(?P<slug>[A-Za-z0-9_-]+)/register$', 'register'),
	url(r'^meetings/(?P<slug>[A-Za-z0-9_-]+)/cancel$', 'cancel'),
	url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$', ResponseTemplateView.as_view()),

)
예제 #2
0
#encoding: UTF-8
from django.conf.urls.defaults import *
from django.utils.translation import ugettext
from knesset.hashnav import ListView, DetailView
from models import *
from views import MeetingsListView, MeetingDetailView, CommitteeDetailView, meeting_list_by_date

committees_list = ListView(queryset = Committee.objects.all(),paginate_by=20)
committee_detail = CommitteeDetailView.as_view()
meetings_list = MeetingsListView(queryset = CommitteeMeeting.objects.all(),paginate_by=20)
#meeting_list_by_date = MeetingListByDate(paginate_by=20)
meeting_detail = MeetingDetailView.as_view()

committeesurlpatterns = patterns ('',
    url(r'^committee/$', committees_list, name='committee-list'),
    url(r'^committee/(?P<pk>\d+)/$', committee_detail, name='committee-detail'),
    url(r'^committee/(?P<committee_id>\d+)/all_meetings/$', meetings_list, name='committee-all-meetings'),
    url(r'^committee/(?P<committee_id>\d+)/date/(?P<date>[\d\-]+)/$', meeting_list_by_date, name='committee-meetings-by-date'),
    url(r'^committee/(?P<committee_id>\d+)/date/$', meeting_list_by_date, name='committee-meetings-by-date'),
    url(r'^committee/meeting/(?P<pk>\d+)/$', meeting_detail, name='committee-meeting'),

)
예제 #3
0
     meeting_list_by_date,
     name='committee-meetings-by-date'),
 url(r'^committee/(?P<committee_id>\d+)/date/$',
     meeting_list_by_date,
     name='committee-meetings-by-date'),
 url(r'^committee/(?P<committee_id>\d+)/topic/$',
     TopicListView.as_view(),
     name='committee-topic-list'),
 url(r'^committee/(?P<committee_id>\d+)/topic/add/$',
     edit_topic,
     name='edit-committee-topic'),
 url(r'^committee/(?P<committee_id>\d+)/topic/edit/(?P<topic_id>\d+)/$',
     edit_topic,
     name='edit-committee-topic'),
 url(r'^committee/meeting/(?P<pk>\d+)/$',
     MeetingDetailView.as_view(),
     name='committee-meeting'),
 url(r'^committee/meeting/tag/(?P<tag>.*)/$',
     MeetingTagListView.as_view(),
     name='committeemeeting-tag'),
 url(r'^committee/topic/$', TopicListView.as_view(), name='topic-list'),
 url(r'^committee/topic/(?P<pk>\d+)/delete/$',
     delete_topic,
     name='delete-committee-topic'),
 url(r'^committee/topic/(?P<pk>\d+)/$',
     TopicDetailView.as_view(),
     name='topic-detail'),
 url(r'^committee/topic/(?P<object_id>\d+)/(?P<score>\d+)/$',
     AddRatingFromModel(), {
         'app_label': 'committees',
         'model': 'topic',
예제 #4
0
from django.conf.urls import patterns, include, url
from models import Meeting
from views import MeetingListView, MeetingDetailView, ResponseTemplateView

urlpatterns = patterns(
    'kcdc3.apps.squirrel.views',
    url(r'^$', 'home'),
    url(r'^meetings/$', MeetingListView.as_view()),
    url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$',
        ResponseTemplateView.as_view()),
    url(r'^meetings/(?P<slug>[A-Za-z0-9_-]+)/$',
        MeetingDetailView.as_view(model=Meeting, )),
    url(r'^meetings/(?P<slug>[A-Za-z0-9_-]+)/register$', 'register'),
    url(r'^meetings/(?P<slug>[A-Za-z0-9_-]+)/cancel$', 'cancel'),
    url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$',
        ResponseTemplateView.as_view()),
)
예제 #5
0
    queryset=CommitteeMeeting.objects.all(), paginate_by=20)

committeesurlpatterns = patterns('',
    url(r'^committee/$', cached(CommitteeListView.as_view()), name='committee-list'),
    url(r'^committee/more-topics/$', TopicsMoreView.as_view(), name='committee-topics-more'),
    url(r'^committee/(?P<pk>\d+)/$', CommitteeDetailView.as_view(), name='committee-detail'),
    url(r'^committee/(?P<committee_id>\d+)/all_meetings/$', meetings_list, name='committee-all-meetings'),
    url(r'^committee/(?P<committee_id>\d+)/date/(?P<date>[\d\-]+)/$', meeting_list_by_date, name='committee-meetings-by-date'),
    url(r'^committee/(?P<committee_id>\d+)/date/$', meeting_list_by_date, name='committee-meetings-by-date'),
    url(r'^committee/(?P<committee_id>\d+)/topic/$', TopicListView.as_view(), name='committee-topic-list'),
    url(r'^committee/(?P<committee_id>\d+)/topic/add/$',
        edit_topic,
        name='edit-committee-topic'),
    url(r'^committee/(?P<committee_id>\d+)/topic/edit/(?P<topic_id>\d+)/$',
        edit_topic,
        name='edit-committee-topic'),
    url(r'^committee/meeting/(?P<pk>\d+)/$', MeetingDetailView.as_view(), name='committee-meeting'),
    url(r'^committee/meeting/tag/(?P<tag>.*)/$', MeetingTagListView.as_view(),
        name='committeemeeting-tag'),
    url(r'^committee/topic/$', TopicListView.as_view(), name='topic-list'),
    url(r'^committee/topic/(?P<pk>\d+)/delete/$', delete_topic,
        name='delete-committee-topic'),
    url(r'^committee/topic/(?P<pk>\d+)/$', TopicDetailView.as_view(), name='topic-detail'),
    url(r'^committee/topic/(?P<object_id>\d+)/(?P<score>\d+)/$',
        AddRatingFromModel(),
        {'app_label': 'committees', 'model': 'topic', 'field_name': 'rating'},
        name='rate-topic'),
    url(r'^committee/topic/(?P<object_id>\d+)/null/$', delete_topic_rating,
        name='delete-topic-rating'),
)
예제 #6
0
 url(r'^committee/$', CommitteeListView.as_view(), name='committee-list'),
 url(r'^committee/more-topics/$', TopicsMoreView.as_view(), name='committee-topics-more'),
 url(r'^committee/(?P<pk>\d+)/$', CommitteeDetailView.as_view(), name='committee-detail'),
 url(r'^committee/all_meetings/$', meetings_list, name='committee-all-meetings'),
 url(r'^committee/(?P<committee_id>\d+)/all_meetings/$', meetings_list, name='committee-all-meetings'),
 url(r'^committee/date/(?P<date>[\d\-]+)/$', meeting_list_by_date, name='committee-meetings-by-date'),
 url(r'^committee/(?P<committee_id>\d+)/date/(?P<date>[\d\-]+)/$', meeting_list_by_date, name='committee-meetings-by-date'),
 url(r'^committee/(?P<committee_id>\d+)/date/$', meeting_list_by_date, name='committee-meetings-by-date'),
 url(r'^committee/(?P<committee_id>\d+)/topic/$', TopicListView.as_view(), name='committee-topic-list'),
 url(r'^committee/(?P<committee_id>\d+)/topic/add/$',
     edit_topic,
     name='edit-committee-topic'),
 url(r'^committee/(?P<committee_id>\d+)/topic/edit/(?P<topic_id>\d+)/$',
     edit_topic,
     name='edit-committee-topic'),
 url(r'^committee/meeting/(?P<pk>\d+)/$', MeetingDetailView.as_view(), name='committee-meeting'),
 url(r'^committee/meeting/tag/(?P<tag>.*)/$', MeetingTagListView.as_view(),
     name='committeemeeting-tag'),
 url(r'^committee/topic/$', TopicListView.as_view(), name='topic-list'),
 url(r'^committee/topic/(?P<pk>\d+)/delete/$', delete_topic,
     name='delete-committee-topic'),
 url(r'^committee/topic/(?P<pk>\d+)/$', TopicDetailView.as_view(), name='topic-detail'),
 url(r'^committee/topic/(?P<object_id>\d+)/(?P<score>\d+)/$',
     AddRatingFromModel(),
     {'app_label': 'committees', 'model': 'topic', 'field_name': 'rating'},
     name='rate-topic'),
 url(r'^committee/topic/(?P<object_id>\d+)/null/$', delete_topic_rating,
     name='delete-topic-rating'),
 url(r'^committee/(?P<committee_id>\d+)/mmm_documents/$', CommitteeMMMDocuments.as_view(),
     name='committee-mmm-documents-list'),
 url(r'^committee/(?P<committee_id>\d+)/mmm_documents/date/(?P<date>[\d\-]+)/$',
예제 #7
0
#encoding: UTF-8
from django.conf.urls.defaults import *
from django.utils.translation import ugettext
from knesset.hashnav import ListView, DetailView
from models import *
from views import MeetingsListView, MeetingDetailView, CommitteeDetailView, meeting_list_by_date

committees_list = ListView(queryset=Committee.objects.all(), paginate_by=20)
committee_detail = CommitteeDetailView.as_view()
meetings_list = MeetingsListView(queryset=CommitteeMeeting.objects.all(),
                                 paginate_by=20)
#meeting_list_by_date = MeetingListByDate(paginate_by=20)
meeting_detail = MeetingDetailView.as_view()

committeesurlpatterns = patterns(
    '',
    url(r'^committee/$', committees_list, name='committee-list'),
    url(r'^committee/(?P<pk>\d+)/$', committee_detail,
        name='committee-detail'),
    url(r'^committee/(?P<committee_id>\d+)/all_meetings/$',
        meetings_list,
        name='committee-all-meetings'),
    url(r'^committee/(?P<committee_id>\d+)/date/(?P<date>[\d\-]+)/$',
        meeting_list_by_date,
        name='committee-meetings-by-date'),
    url(r'^committee/(?P<committee_id>\d+)/date/$',
        meeting_list_by_date,
        name='committee-meetings-by-date'),
    url(r'^committee/meeting/(?P<pk>\d+)/$',
        meeting_detail,
        name='committee-meeting'),