view savane/tracker/urls.py @ 335:0718a9ef6cd5

Tracker items list + bug fixes
author Sylvain Beucler <beuc@beuc.net>
date Sun, 22 Aug 2010 23:10:40 +0200
parents 062570c367f8
children
line wrap: on
line source

# Trackers URLs
# Copyright (C) 2010  Sylvain Beucler
#
# This file is part of Savane.
# 
# Savane is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# Savane 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 Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import *
from django.utils.translation import ugettext, ugettext_lazy as _
from django.views.generic.list_detail import object_detail, object_list
from django.views.generic.create_update import create_object, update_object
from django.contrib.auth.decorators import login_required
from savane.utils import get_site_name
from savane.perms import only_project_admin
from savane.django_utils import decorated_patterns
import views
import models as tracker_models

urlpatterns = patterns ('',)

urlpatterns += patterns ('',
  url(r'^(?P<tracker>[-\w]+)/$', views.item_list,
      { 'paginate_by': 50,
        'extra_context' : { 'title' : _("Bugs") }, },
      name='item_list'),
  url(r'^(?P<tracker>[-\w]+)/(?P<object_id>\d+)/$', views.item_detail,
      {},
      name='item_detail'),
)