Mercurial > genshi > genshi-test
view examples/tutorial/geddit/lib/ajax.py @ 705:c0a321bceb44 experimental-match-fastpaths
fix totally embarassing typo - ctxt not ctx
author | aflett |
---|---|
date | Fri, 04 Apr 2008 17:29:53 +0000 |
parents | dba522b4c31d |
children |
line wrap: on
line source
import cherrypy def is_xhr(): requested_with = cherrypy.request.headers.get('X-Requested-With') return requested_with and requested_with.lower() == 'xmlhttprequest'