For some reason, posting to this from Chrome, using JQuery.post()
works, but doesn't return anything:

@view_config(context=MyApp, renderer='json', request_method="POST")
def add_testbed(context, request):
    """Add a testbed, based on the parameters submitted."""
    data = request.params
    added = context.add(host=data["host"], name=data["name"],
type=DEFAULT_TYPE)
    return {'added': added}

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to