Commit c9fa8b10 by Őry Máté

cloud: fix email address

parent bf7eacee
...@@ -5,7 +5,7 @@ DEBUG = True ...@@ -5,7 +5,7 @@ DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
ADMINS = ( ADMINS = (
('IK', 'cloud@iit.bme.hu'), ('IK', 'cloud@ik.bme.hu'),
) )
MANAGERS = ADMINS MANAGERS = ADMINS
......
...@@ -9,7 +9,6 @@ from django.utils.translation import ugettext_lazy as _ ...@@ -9,7 +9,6 @@ from django.utils.translation import ugettext_lazy as _
from cloud.settings import CLOUD_URL as url from cloud.settings import CLOUD_URL as url
from django.utils import translation from django.utils import translation
class Job(HourlyJob): class Job(HourlyJob):
help = "Suspend/delete expired Instances." help = "Suspend/delete expired Instances."
...@@ -34,8 +33,9 @@ class Job(HourlyJob): ...@@ -34,8 +33,9 @@ class Job(HourlyJob):
translation.activate(i.owner.person_set.get().language) translation.activate(i.owner.person_set.get().language)
except: except:
pass pass
print "%s delete: %s" % (i.name, i.time_of_delete) print u'%s delete: %s' % (i.name, i.time_of_delete)
delete = i.time_of_delete.replace(minute=0, second=0, microsecond=0) delete = i.time_of_delete.replace(minute=0, second=0, microsecond=0)
continue
if i.time_of_delete < now: if i.time_of_delete < now:
# msg = render_to_string('mails/notification-delete-now.txt', { 'user': i.owner, 'instance': i, 'url': url } ) # msg = render_to_string('mails/notification-delete-now.txt', { 'user': i.owner, 'instance': i, 'url': url } )
# SendMailTask.delay(to=i.owner.email, subject='[IK Cloud] %s' % i.name, msg=msg) # SendMailTask.delay(to=i.owner.email, subject='[IK Cloud] %s' % i.name, msg=msg)
...@@ -52,7 +52,7 @@ class Job(HourlyJob): ...@@ -52,7 +52,7 @@ class Job(HourlyJob):
translation.activate(i.owner.person_set.get().language) translation.activate(i.owner.person_set.get().language)
except: except:
pass pass
print "%s suspend: %s" % (i.name, i.time_of_suspend) print u'%s suspend: %s' % (i.name, i.time_of_suspend)
suspend = i.time_of_suspend.replace(minute=0, second=0, microsecond=0) suspend = i.time_of_suspend.replace(minute=0, second=0, microsecond=0)
if i.time_of_suspend < now: if i.time_of_suspend < now:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment