Not entirely. The DataController raises an HTTPRedirect as the result of success. I'm not certain that's the correct result for an Ajax sequence.

But mostly, I was just looking at it from a consistency standpoint. It didn't seem that I was able to determine in the body of the controller method what the format should be. It's easy enough to add this ability -- should be in my next submission.

On 22 Dec, 2005, at 4:43 pm, Kevin Dangoor wrote:

If all you want is the ability to do json, I think you just need to

put allow_json=True in the expose call and pass in tg_format="json"

when you make your AJAX call. That *should* work.


-- 

Jeff Watkins

http://newburyportion.com/


Computers, they're just a fad.



Reply via email to