diff -r fee8732830f7 -r e8d86272e6ea app/soc/modules/ghop/tasks/task_update.py --- a/app/soc/modules/ghop/tasks/task_update.py Mon Sep 07 20:02:35 2009 +0200 +++ b/app/soc/modules/ghop/tasks/task_update.py Mon Sep 07 20:06:27 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'}), }