summaryrefslogtreecommitdiffstats
path: root/askbot/tasks.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-11-17 17:57:09 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-11-17 17:57:09 -0300
commit5b951d7db05a103523eaa9a0729ea0f2909127e8 (patch)
tree88a13b4a9c6573396016bc444085e1bd8025f4d5 /askbot/tasks.py
parent8fb693146db9ada774d01ef51691dd3c6d7cc6ab (diff)
downloadaskbot-5b951d7db05a103523eaa9a0729ea0f2909127e8.tar.gz
askbot-5b951d7db05a103523eaa9a0729ea0f2909127e8.tar.bz2
askbot-5b951d7db05a103523eaa9a0729ea0f2909127e8.zip
added django-style template loader class and replaced render_into_skin with render
Diffstat (limited to 'askbot/tasks.py')
-rw-r--r--askbot/tasks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/askbot/tasks.py b/askbot/tasks.py
index 5cdd59b7..0ae96c09 100644
--- a/askbot/tasks.py
+++ b/askbot/tasks.py
@@ -24,6 +24,7 @@ import uuid
from django.contrib.contenttypes.models import ContentType
from django.template import Context
+from django.template.loader import get_template
from django.utils.translation import ugettext as _
from celery.decorators import task
from askbot.conf import settings as askbot_settings
@@ -80,7 +81,6 @@ def notify_author_of_published_revision_celery_task(revision):
}
#load the template
- from askbot.skins.loaders import get_template
template = get_template('email/notify_author_about_approved_post.html')
#todo: possibly add headers to organize messages in threads
headers = {'Reply-To': append_content_address}
@@ -191,7 +191,6 @@ def send_instant_notifications_about_activity_in_post(
return
#calculate some variables used in the loop below
- from askbot.skins.loaders import get_template
update_type_map = const.RESPONSE_ACTIVITY_TYPE_MAP_FOR_TEMPLATES
update_type = update_type_map[update_activity.activity_type]
origin_post = post.get_origin_post()