If this method no longer works, is there another way to post data to
the database using services?

On Oct 12, 11:29 pm, Anaconda <kerwinfra...@gmail.com> wrote:
> I have been going through the video tutorial on this at "http://
> vimeo.com/21133657" and i can get everything to work except the Post
> requests. I may be calling it incorrectly in my browser, has anyone
> done the tutorial and done it correctly?
>
> @request.restful()
> def manage_dog():
>     def GET(id):
>         dog = db.dog(id)
>         return dog.as_dict() if person else None
>     def POST(owner,name,info):
>         return
> db.dog.validate_and_insert(owner=owner,name=name,info=info)
>     def DELETE(dog)
>         del db.dog(dog)
>         return dict()
>     def PUSH(dog,info):
>         db.dog[dog].update_record(info=info)
>         return dict()
>     return locals()

Reply via email to