Source code for feriennet.redirects

from onegov.feriennet import FeriennetApp
from onegov.core.redirect import Redirect


@FeriennetApp.path(path='/angebote')
[docs] class AngeboteRedirect(Redirect):
[docs] to = '/activities'
@FeriennetApp.path(path='/angebot', absorb=True)
[docs] class AngebotRedirect(Redirect):
[docs] to = '/activity'
@FeriennetApp.path(path='/durchfuehrungen', absorb=True)
[docs] class DurchfuehrungenRedirect(Redirect):
[docs] to = '/occasions'
@FeriennetApp.path(path='/perioden')
[docs] class PeriodenRedirect(Redirect):
[docs] to = '/periods'
@FeriennetApp.path(path='/periode', absorb=True)
[docs] class PeriodeRedirect(Redirect):
[docs] to = '/period'
@FeriennetApp.path(path='/meine-buchungen')
[docs] class MeineBuchungenRedirect(Redirect):
[docs] to = '/my-bookings'
@FeriennetApp.path(path='/buchung', absorb=True)
[docs] class BuchungRedirect(Redirect):
[docs] to = '/booking'
@FeriennetApp.path(path='/zuteilungen')
[docs] class ZuteilungenRedirect(Redirect):
[docs] to = '/matching'
@FeriennetApp.path(path='/rechnungen')
[docs] class RechnungenRedirect(Redirect):
[docs] to = '/billing'
@FeriennetApp.path(path='/rechnungsaktion', absorb=True)
[docs] class RechnungsAktionRedirect(Redirect):
[docs] to = '/invoice-action'
@FeriennetApp.path(path='/meine-rechnungen')
[docs] class MeineRechnungenRedirect(Redirect):
[docs] to = '/my-bills'
@FeriennetApp.path(path='/teilnehmer')
[docs] class TeilnehmerRedirect(Redirect):
[docs] to = '/attendees'
@FeriennetApp.path(path='/mitteilungen')
[docs] class MitteilungenRedirect(Redirect):
[docs] to = '/notifications'
@FeriennetApp.path(path='/mitteilung', absorb=True)
[docs] class MitteilungRedirect(Redirect):
[docs] to = '/notification'