#
# 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/output/urls.py $
# revision : $LastChangedRevision: 1025 $ $LastChangedBy: jdetaeye $
# date : $LastChangedDate: 2009-08-13 15:59:56 +0200 (Thu, 13 Aug 2009) $
from django.conf.urls.defaults import *
import output.views.buffer
import output.views.demand
import output.views.problem
import output.views.forecast
import output.views.resource
import output.views.operation
import output.views.pegging
import output.views.kpi
urlpatterns = patterns('',
(r'^buffer/([^/]+)/$', 'common.report.view_report',
{'report': output.views.buffer.OverviewReport,}),
(r'^buffergraph/([^/]+)/$', 'output.views.buffer.GraphData'),
(r'^buffer/$', 'common.report.view_report',
{'report': output.views.buffer.OverviewReport,}),
(r'^demand/([^/]+)/$', 'common.report.view_report',
{'report': output.views.demand.OverviewReport,}),
(r'^demandgraph/([^/]+)/$', 'output.views.demand.GraphData'),
(r'^demand/$', 'common.report.view_report',
{'report': output.views.demand.OverviewReport,}),
(r'^resource/([^/]+)/$', 'common.report.view_report',
{'report': output.views.resource.OverviewReport,}),
(r'^resourcegraph/([^/]+)/$', 'output.views.resource.GraphData'),
(r'^resource/$', 'common.report.view_report',
{'report': output.views.resource.OverviewReport,}),
(r'^operation/([^/]+)/$', 'common.report.view_report',
{'report': output.views.operation.OverviewReport,}),
(r'^operationgraph/([^/]+)/$', 'output.views.operation.GraphData'),
(r'^operation/$', 'common.report.view_report',
{'report': output.views.operation.OverviewReport,}),
(r'^forecast/([^/]+)/$', 'common.report.view_report',
{'report': output.views.forecast.OverviewReport,}),
(r'^forecastgraph/([^/]+)/$', 'output.views.forecast.GraphData'),
(r'^forecast/$', 'common.report.view_report',
{'report': output.views.forecast.OverviewReport,}),
(r'^pegging/([^/]+)/$', 'common.report.view_report',
{'report': output.views.pegging.Report,}),
(r'^pegginggraph/([^/]+)/$', 'output.views.pegging.GraphData'),
(r'^flowplan/$', 'common.report.view_report',
{'report': output.views.buffer.DetailReport,}),
(r'^problem/$', 'common.report.view_report',
{'report': output.views.problem.Report,}),
(r'^operationplan/$', 'common.report.view_report',
{'report': output.views.operation.DetailReport,}),
(r'^loadplan/$', 'common.report.view_report',
{'report': output.views.resource.DetailReport,}),
(r'^demandplan/$', 'common.report.view_report',
{'report': output.views.demand.DetailReport,}),
(r'^kpi/$', 'common.report.view_report',
{'report': output.views.kpi.Report,}),
)
|