On Mon, Nov 10, 2008 at 7:13 PM, jago wrote:
> With self.request.url I have the current host + path. Is there a clean
> way to only get the host without splitting strings?

oh, sorry, i missed this message. you can pass self.request.uri to
urlparse(), and get the components you want:

http://www.python.org/doc/2.5.2/lib/module-urlparse.html

-- rodrigo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to