pytask/taskapp/urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Wed, 12 Jan 2011 00:22:27 +0530
changeset 149 32dd15eaf9d0
parent 145 4252da60a4ef
permissions -rw-r--r--
fixed a bug where guest users were not able to view the page correctly

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_tasks, edit_textbook, approve_task, approved_task,\
        browse_textbooks, approve_textbook, approved_textbook, addreviewer,\
        view_report, view_work, submit_report

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'^addreviewer/tid=(\w+)$', addreviewer),
            (r'^view/work/tid=(\w+)$', view_work),
            (r'^view/report/rid=(\w+)$', view_report),
            (r'^submit/report/tid=(\w+)$', submit_report),
            (r'^browse/$', browse_tasks),

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