2008-02-06 05:36:07 +01:00
|
|
|
"""
|
|
|
|
Jutda Helpdesk - A Django powered ticket tracker for small enterprise.
|
2007-12-27 01:29:17 +01:00
|
|
|
|
2008-02-06 05:36:07 +01:00
|
|
|
(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.
|
2007-12-27 01:29:17 +01:00
|
|
|
|
2008-02-06 05:36:07 +01:00
|
|
|
urls.py - Mapping of URL's to our various views. Note we always used NAMED
|
|
|
|
views for simplicity in linking later on.
|
2007-12-27 01:29:17 +01:00
|
|
|
"""
|
|
|
|
|
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
2008-02-08 06:29:51 +01:00
|
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
|
|
|
|
from feeds import feed_setup
|
|
|
|
|
|
|
|
from django.contrib.syndication.views import feed as django_feed
|
|
|
|
|
2007-12-27 01:29:17 +01:00
|
|
|
urlpatterns = patterns('helpdesk.views',
|
|
|
|
url(r'^$',
|
|
|
|
'dashboard',
|
|
|
|
name='helpdesk_home'),
|
|
|
|
|
|
|
|
url(r'^tickets/$',
|
|
|
|
'ticket_list',
|
|
|
|
name='helpdesk_list'),
|
|
|
|
|
|
|
|
url(r'^tickets/submit/$',
|
|
|
|
'create_ticket',
|
|
|
|
name='helpdesk_submit'),
|
|
|
|
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/$',
|
|
|
|
'view_ticket',
|
|
|
|
name='helpdesk_view'),
|
|
|
|
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/update/$',
|
|
|
|
'update_ticket',
|
2008-01-07 21:22:13 +01:00
|
|
|
name='helpdesk_update'),
|
2008-01-15 05:00:19 +01:00
|
|
|
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/delete/$',
|
|
|
|
'delete_ticket',
|
|
|
|
name='helpdesk_delete'),
|
2008-01-16 05:52:30 +01:00
|
|
|
|
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/hold/$',
|
|
|
|
'hold_ticket',
|
|
|
|
name='helpdesk_hold'),
|
2008-01-15 05:00:19 +01:00
|
|
|
|
2008-01-16 05:52:30 +01:00
|
|
|
url(r'^tickets/(?P<ticket_id>[0-9]+)/unhold/$',
|
|
|
|
'unhold_ticket',
|
|
|
|
name='helpdesk_unhold'),
|
2008-01-11 02:00:01 +01:00
|
|
|
|
|
|
|
url(r'^raw/(?P<type>\w+)/$',
|
|
|
|
'raw_details',
|
|
|
|
name='helpdesk_raw'),
|
2008-01-16 01:26:24 +01:00
|
|
|
|
|
|
|
url(r'^view/$',
|
|
|
|
'public_view',
|
|
|
|
name='helpdesk_public_view'),
|
2008-02-08 06:29:51 +01:00
|
|
|
|
|
|
|
url(r'^rss/$',
|
|
|
|
'rss_list',
|
|
|
|
name='helpdesk_rss_index'),
|
2008-04-02 01:26:12 +02:00
|
|
|
|
|
|
|
url(r'^reports/$',
|
|
|
|
'report_index',
|
|
|
|
name='helpdesk_report_index'),
|
|
|
|
|
|
|
|
url(r'^reports/(?P<report>\w+)/$',
|
|
|
|
'run_report',
|
|
|
|
name='helpdesk_run_report'),
|
2007-12-27 01:29:17 +01:00
|
|
|
)
|
|
|
|
|
2008-02-08 06:29:51 +01:00
|
|
|
urlpatterns += patterns('',
|
|
|
|
url(r'^rss/(?P<url>.*)/$',
|
|
|
|
login_required(django_feed),
|
|
|
|
{'feed_dict': feed_setup},
|
|
|
|
name='helpdesk_rss'),
|
|
|
|
)
|
2008-04-02 01:26:12 +02:00
|
|
|
|
2007-12-27 01:29:17 +01:00
|
|
|
urlpatterns += patterns('',
|
2008-02-06 05:36:07 +01:00
|
|
|
url(r'^api/(?P<method>[a-z_-]+)/$',
|
|
|
|
'helpdesk.api.api',
|
|
|
|
name='helpdesk_api'),
|
|
|
|
|
|
|
|
url(r'^login/$',
|
|
|
|
'django.contrib.auth.views.login',
|
|
|
|
name='login'),
|
2007-12-27 01:29:17 +01:00
|
|
|
|
2008-02-06 05:36:07 +01:00
|
|
|
url(r'^logout/$',
|
|
|
|
'django.contrib.auth.views.logout',
|
|
|
|
name='logout'),
|
2007-12-27 01:29:17 +01:00
|
|
|
)
|