Commit 4f13aecc by Calen Pennington

Add docstrings to properties

parent 81dd5041
...@@ -9,10 +9,16 @@ def SequenceModule(XModule, ResourceTemplateModule): ...@@ -9,10 +9,16 @@ def SequenceModule(XModule, ResourceTemplateModule):
@property @property
def visited(self): def visited(self):
"""
Return the set of ids that this user has visited in the past
"""
return set(self.state['visited']) return set(self.state['visited'])
@property @property
def possible(self): def possible(self):
"""
Return the set of ids in this sequence that a student could have visited
"""
return set(child.id for child in self.children) return set(child.id for child in self.children)
@xmodule.register_view('student') @xmodule.register_view('student')
......
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