app/soc/modules/ghop/tasks/task_update.py
changeset 2871 e440e94a874b
parent 2867 e8d86272e6ea
child 2879 cb0f9b4646aa
--- a/app/soc/modules/ghop/tasks/task_update.py	Mon Sep 07 20:07:58 2009 +0200
+++ b/app/soc/modules/ghop/tasks/task_update.py	Mon Sep 07 20:26:39 2009 +0200
@@ -23,6 +23,7 @@
 
 
 import logging
+import os
 
 from google.appengine.api.labs import taskqueue
 from google.appengine.ext import db
@@ -30,7 +31,6 @@
 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': system.getHostname(),
+                 'host': os.environ['HTTP_HOST'],
                  'task': redirects.getPublicRedirect(
                      task_entity, {'url_name': 'ghop/task'}),
                  }