Commit 5c36bd10 by Kevin Luo

Clean up keyword_substitution.py

Update docstring and remove unused import
This is cleanup after edx/edx-platform#7605
parent 2817ce14
...@@ -12,9 +12,7 @@ Supported: ...@@ -12,9 +12,7 @@ Supported:
- %%COURSE_END_DATE%% => end date of the course - %%COURSE_END_DATE%% => end date of the course
Usage: Usage:
KEYWORD_FUNCTION_MAP must be supplied in startup.py, so that it lives Call substitute_keywords_with_data where substitution is
above other modules in the dependency tree and acts like a global var.
Then we can call substitute_keywords_with_data where substitution is
needed. Currently called in: needed. Currently called in:
- LMS: Announcements + Bulk emails - LMS: Announcements + Bulk emails
- CMS: Not called - CMS: Not called
...@@ -22,7 +20,6 @@ Usage: ...@@ -22,7 +20,6 @@ Usage:
from django.contrib.auth.models import User from django.contrib.auth.models import User
from student.models import anonymous_id_for_user from student.models import anonymous_id_for_user
from xmodule.modulestore.django import modulestore
def anonymous_id_from_user_id(user_id): def anonymous_id_from_user_id(user_id):
......
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 to comment