Exemplo n.º 1
0
def fortune():
    new_message = {
        "id": 0,
        "message": "Additional fortune added at request time."
    }
    db = RawDal() if current.optimized else Dal("Fortune")
    fortunes = db.get_fortunes(new_message=new_message)
    return current.response.render("fortune.html", fortunes=fortunes)
Exemplo n.º 2
0
def fortune():
    new_message = {
        'id': 0,
        'message': 'Additional fortune added at request time.'
    }
    db = RawDal() if current.optimized else Dal('Fortune')
    fortunes = db.get_fortunes(new_message=new_message)
    return current.response.render('fortune.html', fortunes=fortunes)
def fortune():
    new_message = {'id': 0, 'message': 'Additional fortune added at request time.'}
    db = RawDal() if current.optimized else Dal('Fortune')
    fortunes = db.get_fortunes(new_message=new_message)
    return current.response.render('fortune.html', fortunes=fortunes)