def DELETE(self, _id): db.todos.remove(ObjectId(_id), safe=True) return web.no_content()
def PUT(self, _id): data = json.request() db.todos.save(data, safe=True, multi=False) return web.no_content()