I'm building URLs for emails. One email is fired out in response to the user submitting a form.
url = '%s%s' % (request.env.http_origin,URL (r=request,c='default',f='confirmgreet', args=base64.b16encode (address))) However, I also need to build an URL when a form is not submitted. In this case, no request.env.http_origin is defined How can I find out what the http://site/ path is so that my code can run regardless of deployment (local or GAE). thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---