diff -r cf4b80992451 -r cb0f9b4646aa app/soc/modules/ghop/tasks/task_update.py --- a/app/soc/modules/ghop/tasks/task_update.py Mon Sep 07 20:27:37 2009 +0200 +++ b/app/soc/modules/ghop/tasks/task_update.py Mon Sep 07 20:36:14 2009 +0200 @@ -23,7 +23,6 @@ import logging -import os from google.appengine.api.labs import taskqueue from google.appengine.ext import db @@ -31,6 +30,7 @@ from django import http from django.utils.translation import ugettext +from soc.logic import system from soc.tasks.helper import error_handler from soc.views.helper import redirects @@ -180,7 +180,7 @@ subscriber_start_index:subscriber_start_index+batch_size]) task_url = "http://%(host)s%(task)s" % { - 'host': os.environ['HTTP_HOST'], + 'host': system.getHostname(), 'task': redirects.getPublicRedirect( task_entity, {'url_name': 'ghop/task'}), }