pytask/taskapp/urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Tue, 11 Jan 2011 11:30:14 +0530
changeset 137 40f1ef7a46d8
parent 136 cdd8026ee60e
child 138 5a94c774473c
permissions -rw-r--r--
added admin files

from django.conf.urls.defaults import *

from pytask.taskapp.views import create_task, view_task, claim_task, \
        select_user, edit_task, create_textbook, view_textbook, \
        browse_textbooks, edit_textbook, approve_task, approved_task

from pytask.views import under_construction

urlpatterns = patterns('',

            (r'^create/$', create_task),
            (r'^edit/tid=(\w+)$', edit_task),
            (r'^view/tid=(\w+)$', view_task),
            (r'^claim/tid=(\w+)$', claim_task),
            (r'^select/tid=(\w+)$', select_user),
            (r'^approve/tid=(\w+)$', approve_task),
            (r'^approved/tid=(\w+)$', approved_task),
            (r'^browse/$', under_construction),

            (r'^textbook/create/$', create_textbook),
            (r'^textbook/view/tid=(\w+)/$', view_textbook),
            (r'^textbook/edit/tid=(\w+)/$', edit_textbook),
            (r'^textbook/browse/$', browse_textbooks),
)