예제 #1
0
파일: urls.py 프로젝트: mydos/plan
# This file is part of the plan timetable generator, see LICENSE for details.

from django.conf.urls import patterns
from plan.common.utils import url

urlpatterns = patterns(
    'plan.ical.views',
    url(r'^{year}/{semester}/{slug}/ical/(?:{ical}/)?$',
        'ical',
        name='schedule-ical'),
)
예제 #2
0
파일: urls.py 프로젝트: HelleIrina/plan
# This file is part of the plan timetable generator, see LICENSE for details.

from django.conf.urls import patterns
from plan.common.utils import url

urlpatterns = patterns('plan.common.views',
    url(r'^$', 'frontpage', name='frontpage'),
    url(r'^{year}/{semester}/$', 'getting_started', name='semester'),

    url(r'^{year}/{semester}/\+$', 'course_query', name='course-query'),

    url(r'^{year}/{semester}/{slug}/$', 'schedule', {'all': True}, name='schedule'),
    url(r'^{year}/{semester}/{slug}/\+$', 'schedule', {'advanced': True}, name='schedule-advanced'),
    url(r'^{year}/{semester}/{slug}/current/$', 'schedule_current', name='schedule-current'),
    url(r'^{year}/{semester}/{slug}/{week}/$', 'schedule', name='schedule-week'),

    url(r'^{year}/{semester}/{slug}/change/$', 'select_course', name='change-course'),
    url(r'^{year}/{semester}/{slug}/groups/$', 'select_groups', name='change-groups'),
    url(r'^{year}/{semester}/{slug}/filter/$', 'select_lectures', name='change-lectures'),

    url(r'^[+]$', 'about', name='about'),
    url(r'^{slug}/?$', 'shortcut', name='shortcut'),
)
예제 #3
0
# This file is part of the plan timetable generator, see LICENSE for details.

from plan.common.utils import url
from plan.pdf import views

urlpatterns = [
    url(r'^{year}/{semester}/{slug}/pdf/(?:{size}/)?(?:{week}/)?$',
        views.pdf,
        name='schedule-pdf'),
]
예제 #4
0
# This file is part of the plan timetable generator, see LICENSE for details.

from plan.common.utils import url
from plan.common.views import *

urlpatterns = [
    url(r'^$', frontpage, name='frontpage'),
    url(r'^{year}/{semester}/$', getting_started, name='semester'),
    url(r'^{year}/{semester}/\+$', course_query, name='course-query'),
    url(r'^{year}/{semester}/{slug}/$',
        schedule, {'all': True},
        name='schedule'),
    url(r'^{year}/{semester}/{slug}/\+$',
        schedule, {'advanced': True},
        name='schedule-advanced'),
    url(r'^{year}/{semester}/{slug}/current/$',
        schedule_current,
        name='schedule-current'),
    url(r'^{year}/{semester}/{slug}/{week}/$', schedule, name='schedule-week'),
    url(r'^{year}/{semester}/{slug}/change/$',
        select_course,
        name='change-course'),
    url(r'^{year}/{semester}/{slug}/groups/$',
        select_groups,
        name='change-groups'),
    url(r'^{year}/{semester}/{slug}/filter/$',
        select_lectures,
        name='change-lectures'),
    url(r'^[+]$', about, name='about'),
    url(r'^{slug}/?$', shortcut, name='shortcut'),
]
예제 #5
0
파일: urls.py 프로젝트: HelleIrina/plan
# This file is part of the plan timetable generator, see LICENSE for details.

from django.conf.urls import patterns
from plan.common.utils import url

urlpatterns = patterns('plan.pdf.views',
    url(r'^{year}/{semester}/{slug}/pdf/(?:{size}/)?(?:{week}/)?$', 'pdf', name='schedule-pdf'),
)