| 1 |
#
|
| 2 |
# Copyright (C) 2005, marduk <marduk@python.net>
|
| 3 |
#
|
| 4 |
# This copyrighted material is made available to anyone wishing to use,
|
| 5 |
# modify, copy, or redistribute it subject to the terms and conditions
|
| 6 |
# of the GNU General Public License v.2.
|
| 7 |
#
|
| 8 |
# You should have received a copy of the GNU General Public License
|
| 9 |
# along with this program; if not, write to the Free Software Foundation,
|
| 10 |
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 11 |
#
|
| 12 |
"""/bugs/
|
| 13 |
Like /licenses/ this is only a redirector. Redirect to bugzilla.
|
| 14 |
"""
|
| 15 |
from quixote import redirect
|
| 16 |
|
| 17 |
_q_exports = []
|
| 18 |
|
| 19 |
BBASE = 'http://bugs.gentoo.org/show_bug.cgi'
|
| 20 |
|
| 21 |
def _q_index(_):
|
| 22 |
"""This should never be called"""
|
| 23 |
return redirect(BBASE)
|
| 24 |
|
| 25 |
def _q_lookup(_, component):
|
| 26 |
"""Redirect: component should be a bug number"""
|
| 27 |
return redirect('%s?id=%s' % (BBASE, component))
|