Source code for org.redirects

from onegov.org import OrgApp
from onegov.core.redirect import Redirect


@OrgApp.path(path='/benutzerverwaltung')
[docs] class BenutzerverwaltungRedirect(Redirect):
[docs] to = '/usermanagement'
@OrgApp.path(path='/themen', absorb=True)
[docs] class ThemenRedirect(Redirect):
[docs] to = '/topics'
@OrgApp.path(path='/aktuelles', absorb=True)
[docs] class AktuellesRedirect(Redirect):
[docs] to = '/news'
@OrgApp.path(path='/dateien')
[docs] class DateienRedirect(Redirect):
[docs] to = '/files'
@OrgApp.path(path='/bilder')
[docs] class BilderRedirect(Redirect):
[docs] to = '/images'
@OrgApp.path(path='/exporte')
[docs] class ExporteRedirect(Redirect):
[docs] to = '/exports'
@OrgApp.path(path='/formulare')
[docs] class FormulareRedirect(Redirect):
[docs] to = '/forms'
@OrgApp.path(path='/formular', absorb=True)
[docs] class FormularRedirect(Redirect):
[docs] to = '/form'
@OrgApp.path(path='/formular-eingabe', absorb=True)
[docs] class FormularEingabeRedirect(Redirect):
[docs] to = '/form-preview'
@OrgApp.path(path='/formular-eingang', absorb=True)
[docs] class FormularEingangRedirect(Redirect):
[docs] to = '/form-submission'
@OrgApp.path(path='/personen')
[docs] class PersonenRedirect(Redirect):
[docs] to = '/people'
@OrgApp.path(path='/ressourcen')
[docs] class RessourcenRedirect(Redirect):
[docs] to = '/resources'
@OrgApp.path(path='/ressource', absorb=True)
[docs] class RessourceRedirect(Redirect):
[docs] to = '/resource'
@OrgApp.path(path='/einteilung', absorb=True)
[docs] class EinteilungRedirect(Redirect):
[docs] to = '/allocation'
@OrgApp.path(path='/veranstaltungen')
[docs] class VeranstaltungenRedirect(Redirect):
[docs] to = '/events'
@OrgApp.path(path='/veranstaltung', absorb=True)
[docs] class VeranstaltungRedirect(Redirect):
[docs] to = '/event'
@OrgApp.path(path='/suche')
[docs] class SucheRedirect(Redirect):
[docs] to = '/search'
@OrgApp.path(path='/abonnenten')
[docs] class AbonnentenRedirect(Redirect):
[docs] to = '/subscribers'
@OrgApp.path(path='/datei', absorb=True)
[docs] class DateiRedirect(Redirect):
[docs] to = '/file'
@OrgApp.path(path='/bild', absorb=True)
[docs] class BildRedirect(Redirect):
[docs] to = '/image'
@OrgApp.path(path='/fotoalben')
[docs] class FotoalbenRedirect(Redirect):
[docs] to = '/photoalbums'
@OrgApp.path(path='/fotoalbum', absorb=True)
[docs] class FotoalbumRedirect(Redirect):
[docs] to = '/photoalbum'
@OrgApp.path(path='/ressourcen-empfang')
[docs] class RessourcenEmpfangRedirect(Redirect):
[docs] to = '/resource-recipients'
@OrgApp.path(path='/ressourcen-empfaenger', absorb=True)
[docs] class RessourcenEmpfaengerRedirect(Redirect):
[docs] to = '/resource-recipient'
@OrgApp.path(path='/zahlungsanbieter')
[docs] class ZahlungsanbieterRedirect(Redirect):
[docs] to = '/payment-provider'
@OrgApp.path(path='/zahlungsanbieter-eintrag', absorb=True)
[docs] class ZahlungsanbieterEintragRedirect(Redirect):
[docs] to = '/payment-provider-entry'
@OrgApp.path(path='/zahlung', absorb=True)
[docs] class ZahlungRedirect(Redirect):
[docs] to = '/payment'
@OrgApp.path(path='/zahlungen')
[docs] class ZahlungenRedirect(Redirect):
[docs] to = '/payments'