Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
04f6d6d0
Commit
04f6d6d0
authored
Feb 06, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation
parent
6f147df7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
common/lib/xmodule/xmodule/peer_grading_module.py
+0
-1
common/lib/xmodule/xmodule/timeinfo.py
+7
-1
No files found.
common/lib/xmodule/xmodule/peer_grading_module.py
View file @
04f6d6d0
...
...
@@ -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
)
...
...
common/lib/xmodule/xmodule/timeinfo.py
View file @
04f6d6d0
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment