Skip to content
This repository
tree: aa25103e9c
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (28 sloc) 0.749 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# -*- coding: utf-8 -*-

controller_routes = {
    "inicio": "home",
    "principal": "home",
    "artigo": "article",
    "articulo": "article"
}

function_routes = {
    "artigo": "article",
    "articulo": "article",
    "home": "index",
    "usuario": "user",
    "ver": "show",
    "editar": "edit"
}

args_router = {
    "['cadastro']": ['register'],
    "['entrar']": ['login'],
    "['sair']": ['logout'],
    "['perfil']": ['profile'],
}

request.controller = controller_routes.get(request.controller, request.controller)
request.function = function_routes.get(request.function, request.function)
#print request.args
request.args = args_router.get(str(request.args), request.args)


CURL = URL
from gluon import current
current.CURL = CURL
Something went wrong with that request. Please try again.