Exemplo n.º 1
0
def index(request):
    vars = wrapper.extract_vars(request.arguments)
    form = SQLFORM(db.person)
    if form.accepts(vars):
        message = 'hello %s' % form.vars.name
    else:
        message = 'hello anonymous'
    people = db(db.person).select()
    now = cache.ram('time', lambda: time.ctime(), 10)
    return locals()
Exemplo n.º 2
0
def index():
    vars = wrapper.extract_vars(request.forms)
    form = SQLFORM(db.person)
    if form.accepts(vars):
        message = 'hello %s' % form.vars.name
    else:
        message = 'hello anonymous'
    people = db(db.person).select()
    now  = cache.ram('time',lambda:time.ctime(),10)
    return locals()
Exemplo n.º 3
0
def index(environ, vars):
    vars = wrapper.extract_vars(vars)
    form = SQLFORM(db.person)
    if form.accepts(vars):
        message = "hello %s" % form.vars.name
    else:
        message = "hello anonymous"
    people = db(db.person).select()
    now = cache.ram("time", lambda: time.ctime(), 10)
    return locals()