Re: xpath queries
emf <syncato-IT4L295iNO/[email protected]> Mon, 3 May 2004 01:29:45 -0400
| Newsgroups | gmane.comp.web.syncato.general |
|---|---|
| Message-ID | <[email protected]> |
On May 2, 2004, at 18:39, emf wrote: > So here is my "i have a deadline in a week" quick hack to fix the > problem - I grab REQUEST_URI and SCRIPT_NAME from the _environ, ditch > SCRIPT_NAME and any query string, and call the rest pathInfo. Ug. Apparently SCRIPT_NAME changes once you're down to /WK/blog :P ... so right now it's eaven hackier - I just manually remove '/WK/blog' from REQUEST_URI. The other thing I had to do is mozilla uri-encodes the square brackets, so I used urllib.unquote() to get back to something the xpath handler wouldn't squawk at. -- honi soit qui mal y pense ~mindlace http://mindlace.net ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click