From 5c36bd10529f2a8b49f491cf8b2d6f4ae13c6f05 Mon Sep 17 00:00:00 2001 From: Kevin Luo Date: Wed, 6 May 2015 14:22:21 -0700 Subject: [PATCH] Clean up keyword_substitution.py Update docstring and remove unused import This is cleanup after edx/edx-platform#7605 --- common/djangoapps/util/keyword_substitution.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/djangoapps/util/keyword_substitution.py b/common/djangoapps/util/keyword_substitution.py index f9a9aa34e0..c7156e54b2 100644 --- a/common/djangoapps/util/keyword_substitution.py +++ b/common/djangoapps/util/keyword_substitution.py @@ -12,9 +12,7 @@ Supported: - %%COURSE_END_DATE%% => end date of the course Usage: - KEYWORD_FUNCTION_MAP must be supplied in startup.py, so that it lives - above other modules in the dependency tree and acts like a global var. - Then we can call substitute_keywords_with_data where substitution is + Call substitute_keywords_with_data where substitution is needed. Currently called in: - LMS: Announcements + Bulk emails - CMS: Not called @@ -22,7 +20,6 @@ Usage: from django.contrib.auth.models import User from student.models import anonymous_id_for_user -from xmodule.modulestore.django import modulestore def anonymous_id_from_user_id(user_id):