No this should work. I will take a look. Is this 1.74.2? On Dec 16, 7:42 am, selecta <[email protected]> wrote: > in db.py > db.define_table('mytable',Field('myfield','string')) > > in default.py > def index(): > form = SQLFORM(db.mytable) > if form.accepts(request.vars, session): > return form.vars.id > response.flash = T('Welcome to web2py') > return dict(message=T('Hello World'),form=form) > > in index.html I added > {{=form}} > > using the form athttp://127.0.0.1:8001/test/default/indexproduces > Traceback (most recent call last): > File "/home//web2py/gluon/main.py", line 479, in wsgibase > serve_controller(request, response, session) > File "/home//web2py/gluon/main.py", line 194, in serve_controller > page = run_controller_in(request.controller, request.function, > environment) > File "/home//web2py/gluon/compileapp.py", line 435, in > run_controller_in > vars = vars.xml() > TypeError: 'NoneType' object is not callable > > used to work? is there a new mechanism to get the id of a newly > created record?
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

