import logging
import traceback
from random import choice
from bottle import route, request, abort
from bottle import jinja2_template as template
from esteapp.routes import routes

logger = logging.getLogger("esteapp.app.test")

@route(routes["test"], method=["GET", "POST"])
def test():
    swa = choice([1, 2, 3])

    if swa == 1:
        return {"message": "swa",
                "state": "swo"}
    elif swa == 2:
        return abort(404, "La swa no estaaaaaaaaaa")
    else:
        return template("test.tpl", {'swa': "asdf"})
d3b26eed6aa780e9714c75b12eba849c2c563bb4
<mask token>

<mask token>


@route(routes['test'], method=['GET', 'POST'])
def test():
    swa = choice([1, 2, 3])
    if swa == 1:
        return {'message': 'swa', 'state': 'swo'}
    elif swa == 2:
        return abort(404, 'La swa no estaaaaaaaaaa')
    else:
        return template('test.tpl', {'swa': 'asdf'})

<mask token>
logger = logging.getLogger('esteapp.app.test')


@route(routes['test'], method=['GET', 'POST'])
def test():
    swa = choice([1, 2, 3])
    if swa == 1:
        return {'message': 'swa', 'state': 'swo'}
    elif swa == 2:
        return abort(404, 'La swa no estaaaaaaaaaa')
    else:
        return template('test.tpl', {'swa': 'asdf'})

import logging
import traceback
from random import choice
from bottle import route, request, abort
from bottle import jinja2_template as template
from esteapp.routes import routes
logger = logging.getLogger('esteapp.app.test')


@route(routes['test'], method=['GET', 'POST'])
def test():
    swa = choice([1, 2, 3])
    if swa == 1:
        return {'message': 'swa', 'state': 'swo'}
    elif swa == 2:
        return abort(404, 'La swa no estaaaaaaaaaa')
    else:
        return template('test.tpl', {'swa': 'asdf'})

import logging
import traceback
from random import choice
from bottle import route, request, abort
from bottle import jinja2_template as template
from esteapp.routes import routes

logger = logging.getLogger("esteapp.app.test")

@route(routes["test"], method=["GET", "POST"])
def test():
    swa = choice([1, 2, 3])

    if swa == 1:
        return {"message": "swa",
                "state": "swo"}
    elif swa == 2:
        return abort(404, "La swa no estaaaaaaaaaa")
    else:
        return template("test.tpl", {'swa': "asdf"})