Commit 419abfdc by Alexander Kryklia

attr converted to string, updated docs

parent f5e015ff
......@@ -22,11 +22,14 @@ class ConditionalModule(XModule):
Example:
<conditional sources="i4x://.../problem_1" completed="True">
<conditional sources="i4x://.../problem_1; i4x://.../problem_2" completed="True">
<show sources="i4x://.../test_6; i4x://.../Avi_resources"/>
<video url_name="secret_video" />
</conditional>
TODO string comparison
multiple answer for every poll
"""
js = {'coffee': [resource_string(__name__, 'js/src/javascript_loader.coffee'),
......@@ -74,7 +77,7 @@ class ConditionalModule(XModule):
if callable(attr):
attr = attr()
return xml_value == attr
return xml_value == str(attr)
return False
def get_html(self):
......
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