[web2py] TypeError: 'NoneType' object is not callable

2014-08-05 Thread Marco
Hi, I have followed your tutorial for the RESTful api. I am getting the following error though on POST. Here is the code snippet: *def POST(table_name,**vars):* *return db[table_name].validate_and_insert(**vars)* Here is the db model * db.define_table("entries", Field("entr

[web2py] TypeError: 'NoneType' object is not callable

2010-08-17 Thread Karan Poddar
import datetime; now=datetime.datetime.today() db.define_table('Genre', SQLField('Name','string')) db.Genre.Name.requires=IS_NOT_IN_DB(db,'Genre.Name') db.define_table('Songs', SQLField('Name','string',requires=IS_NOT_EMPTY()), SQLField('file','upl