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
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
2 matches
Mail list logo