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()
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()
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()