On Tuesday February 3, 2009 13:20:58 Alberto Valverde wrote:
> url = '%s://%s%s' % tuple(environ[k] for k in "wsgi.url_scheme",
> "HTTP_HOST", "SCRIPT_NAME")
Or:
from paste.request import construct_url
url = construct_url(environ)
Which will also take the port into account.
Cheers!
--
Gustavo Narea.
General Secretary.
GNU/Linux Matters <http://gnulinuxmatters.org/>.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---