From 23e3d371ef3063bfa03a46f7f53ac9d5480ac3ad Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Wed, 22 Aug 2012 11:49:26 -0700 Subject: [PATCH] adding more details about the state of course.css_class --- common/lib/xmodule/xmodule/course_module.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/lib/xmodule/xmodule/course_module.py b/common/lib/xmodule/xmodule/course_module.py index 4e799a6f0d..3d2b6c60bf 100644 --- a/common/lib/xmodule/xmodule/course_module.py +++ b/common/lib/xmodule/xmodule/course_module.py @@ -201,6 +201,11 @@ class CourseDescriptor(SequenceDescriptor): # there are courses that change the number for different runs. This allows # courses to share the same css_class across runs even if they have # different numbers. + # + # TODO get rid of this as soon as possible or potentially build in a robust + # way to add in course-specific styling. There needs to be a discussion + # about the right way to do this, but arjun will address this ASAP. Also + # note that the courseware template needs to change when this is removed. @property def css_class(self): return self.metadata.get('css_class', '')