Commit 04f6d6d0 by Diana Huang

Improve documentation

parent 6f147df7
......@@ -82,7 +82,6 @@ class PeerGradingModule(XModule):
if isinstance(self.is_graded, basestring):
self.is_graded = (self.is_graded in TRUE_DICT)
#TODO: do we only want to allow this for single locations?
display_due_date_string = self.metadata.get('due', None)
grace_period_string = self.metadata.get('graceperiod', None)
......
......@@ -8,8 +8,14 @@ log = logging.getLogger(__name__)
class TimeInfo(object):
"""
This is a simple object that stores datetime information for an XModule
This is a simple object that calculates and stores datetime information for an XModule
based on the due date string and the grace period string
So far it parses out three different pieces of time information:
self.display_due_date - the 'official' due date that gets displayed to students
self.grace_period - the length of the grace period
self.close_date - the real due date
"""
def __init__(self, display_due_date_string, grace_period_string):
if display_due_date_string is not None:
......
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