On Jul 19, 2006, at 1:50 AM, iGL wrote:

>
> Hi,
> Does paste.WSGIRequest have something equivalent of Rails' request's
> 'xhr?' attribute? And if not, maybe, once webhelpers are linked with
> prototype anyway, the Pylons' version of WSGIRequest should have one?
> Its implementation is trivial, as ptototype sends "X-Requested-With"
> header along with each ajax request.
>

You can check for any header in the environ dict:  
request.environ.has_key('X-Requested-With'). Is that what you're  
looking for?

What does Rail's xhr attribute do?

--
Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to