Hello Everyone,

How can I return a value through the exception_response.

Ex ->
with jQuery usually we have this kind of code:
// frontend
$.post (url, params).done(function (response) {
     alert (response.somedata); // Alert -> "some data"
});

#backend

view_config (route_name = "someview" renderer = "json")
def someview (request):
    # Do something
    {return "somedata": "some data"}


How I can do that, using execption_response?

execption_response(200, somedata="some data")

??
Mário Idival
Python Developer

*Twitter|Github|Skype *: *marioidival*
*Facebook*: *mario.idival*
*User Linux** : **#554446*

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to