From 9cdd271ee42c6476eb232efbd3831e283e62b669 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Mon, 25 Feb 2013 12:04:18 +0200 Subject: [PATCH] added icon class --- common/lib/xmodule/xmodule/conditional_module.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/lib/xmodule/xmodule/conditional_module.py b/common/lib/xmodule/xmodule/conditional_module.py index f56311880b..5cec8509ca 100644 --- a/common/lib/xmodule/xmodule/conditional_module.py +++ b/common/lib/xmodule/xmodule/conditional_module.py @@ -115,7 +115,13 @@ class ConditionalModule(XModule): self.contents = [self.system.get_module(child_descriptor).get_html() for child_descriptor in self.descriptor.get_children()] + # TODO make this work + self.icon_class = self.system.get_module( + self.descriptor.get_children()[0]).get_icon_class() + html = self.contents + + return json.dumps({'html': html, 'passed': True})