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
c24820ae
Commit
c24820ae
authored
Jan 15, 2014
by
David Baumgold
Committed by
Don Mitchell
Jan 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default start date for About pages
So that About pages will display in the LMS if the user is not logged in
parent
7ff13786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
common/lib/xmodule/xmodule/html_module.py
+9
-0
No files found.
common/lib/xmodule/xmodule/html_module.py
View file @
c24820ae
...
...
@@ -3,11 +3,14 @@ from fs.errors import ResourceNotFoundError
import
logging
import
os
import
sys
from
datetime
import
datetime
from
lxml
import
etree
from
path
import
path
from
pytz
import
UTC
from
pkg_resources
import
resource_string
from
xblock.fields
import
Scope
,
String
,
Boolean
from
xmodule.fields
import
Date
from
xmodule.editing_module
import
EditingDescriptor
from
xmodule.html_checker
import
check_html
from
xmodule.stringify
import
stringify_children
...
...
@@ -227,6 +230,12 @@ class AboutFields(object):
default
=
""
,
scope
=
Scope
.
content
)
# this exists purely to override the default start date
start
=
Date
(
help
=
"placeholder to make sure that About is always active"
,
default
=
datetime
.
fromtimestamp
(
0
,
UTC
),
scope
=
Scope
.
settings
,
)
class
AboutModule
(
AboutFields
,
HtmlModule
):
...
...
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