Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d20eb077
Commit
d20eb077
authored
12 years ago
by
David Ormsbee
Browse files
Options
Downloads
Patches
Plain Diff
Allow UTF-8 chars in about sections.
parent
76746938
No related branches found
Branches containing commit
Tags
release-2020-10-30-12.40
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/course_module.py
+2
-2
2 additions, 2 deletions
common/lib/xmodule/xmodule/course_module.py
with
2 additions
and
2 deletions
common/lib/xmodule/xmodule/course_module.py
+
2
−
2
View file @
d20eb077
...
...
@@ -62,7 +62,7 @@ class CourseDescriptor(SequenceDescriptor):
'
requirements
'
,
'
syllabus
'
,
'
textbook
'
,
'
faq
'
,
'
more_info
'
,
'
number
'
,
'
instructors
'
]:
try
:
with
self
.
system
.
resources_fs
.
open
(
path
(
"
about
"
)
/
section_key
+
"
.html
"
)
as
htmlFile
:
return
htmlFile
.
read
()
return
htmlFile
.
read
()
.
decode
(
'
utf-8
'
)
except
ResourceNotFoundError
:
log
.
exception
(
"
Missing about section {key} in course {url}
"
.
format
(
key
=
section_key
,
url
=
self
.
location
.
url
()))
return
"
! About section missing !
"
...
...
@@ -91,7 +91,7 @@ class CourseDescriptor(SequenceDescriptor):
if
section_key
in
[
'
handouts
'
,
'
guest_handouts
'
,
'
updates
'
,
'
guest_updates
'
]:
try
:
with
self
.
system
.
resources_fs
.
open
(
path
(
"
info
"
)
/
section_key
+
"
.html
"
)
as
htmlFile
:
return
htmlFile
.
read
()
return
htmlFile
.
read
()
.
decode
(
'
utf-8
'
)
except
ResourceNotFoundError
:
log
.
exception
(
"
Missing info section {key} in course {url}
"
.
format
(
key
=
section_key
,
url
=
self
.
location
.
url
()))
return
"
! Info section missing !
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment