Commit 9186e617 by Vasyl Nakvasiuk

use shortcut `get_display_items`

parent 81bfa46f
......@@ -120,8 +120,8 @@ class ConditionalModule(XModule):
return json.dumps({'html': [html], 'message': bool(message)})
if self.contents is None:
self.contents = [self.system.get_module(child_descriptor).get_html()
for child_descriptor in self.descriptor.get_children()]
self.contents = [child.get_html() for child in
self.get_display_items()]
html = self.contents
......
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