#
# Copyright (C) 2007 by Johan De Taeye
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# file : $URL: https://frepple.svn.sourceforge.net/svnroot/frepple/tags/0.8.0/contrib/django/freppledb/input/urls.py $
# revision : $LastChangedRevision: 1091 $ $LastChangedBy: jdetaeye $
# date : $LastChangedDate: 2009-11-21 13:41:39 +0100 (Sat, 21 Nov 2009) $
from django.conf.urls.defaults import *
import input.views
urlpatterns = patterns('',
# Plan report: no list, but redirect to edit page of plan
('^admin/input/plan/$', 'django.views.generic.simple.redirect_to',
{'url': '/admin/input/plan/1/'}),
# Model list reports, which override standard admin screens
(r'^admin/input/buffer/$', 'common.report.view_report',
{'report': input.views.BufferList,}),
(r'^admin/input/resource/$', 'common.report.view_report',
{'report': input.views.ResourceList,}),
(r'^admin/input/location/$', 'common.report.view_report',
{'report': input.views.LocationList,}),
(r'^admin/input/customer/$', 'common.report.view_report',
{'report': input.views.CustomerList,}),
(r'^admin/input/demand/$', 'common.report.view_report',
{'report': input.views.DemandList,}),
(r'^admin/input/item/$', 'common.report.view_report',
{'report': input.views.ItemList,}),
(r'^admin/input/load/$', 'common.report.view_report',
{'report': input.views.LoadList,}),
(r'^admin/input/flow/$', 'common.report.view_report',
{'report': input.views.FlowList,}),
(r'^admin/input/forecast/$', 'common.report.view_report',
{'report': input.views.ForecastList,}),
(r'^admin/input/calendar/$', 'common.report.view_report',
{'report': input.views.CalendarList,}),
(r'^admin/input/operation/$', 'common.report.view_report',
{'report': input.views.OperationList,}),
(r'^admin/input/setupmatrix/$', 'common.report.view_report',
{'report': input.views.SetupMatrixList,}),
(r'^admin/input/suboperation/$', 'common.report.view_report',
{'report': input.views.SubOperationList,}),
(r'^admin/input/operationplan/$', 'common.report.view_report',
{'report': input.views.OperationPlanList,}),
# Special reports
(r'^supplypath/([^/]+)/([^/]+)/$', input.views.pathreport.viewupstream),
(r'^whereused/([^/]+)/([^/]+)/$', input.views.pathreport.viewdownstream),
(r'^edit/$', input.views.uploadjson.post),
)
|