Hmm, looks like this is what I want: from paste.request import construct_url print "current url:", construct_url(request.environ)
unless there's an easier way. -jj On 10/9/06, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > I need to redirect the user to a login server. I want to pass along > my complete current URL. url_for doesn't include the hostname. > What's the easiest (i.e. a single method call) way of getting the > complete current URL (i.e. it takes care of http vs. https, the port, > etc.)? > > Thanks, > -jj > > -- > The one who gets the last laugh isn't the one who did the laughing, > but rather the one who did the writing. > -- The one who gets the last laugh isn't the one who did the laughing, but rather the one who did the writing. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
