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
81e1d18d
Commit
81e1d18d
authored
Nov 14, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1670 from antoviaque/hidden-module-unicode
hidden-module-unicode: Return unicode string to pass assertion
parents
cb92b753
02937272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/hidden_module.py
+2
-2
No files found.
common/lib/xmodule/xmodule/hidden_module.py
View file @
81e1d18d
...
@@ -5,9 +5,9 @@ from xmodule.raw_module import RawDescriptor
...
@@ -5,9 +5,9 @@ from xmodule.raw_module import RawDescriptor
class
HiddenModule
(
XModule
):
class
HiddenModule
(
XModule
):
def
get_html
(
self
):
def
get_html
(
self
):
if
self
.
system
.
user_is_staff
:
if
self
.
system
.
user_is_staff
:
return
"ERROR: This module is unknown--students will not see it at all"
return
u
"ERROR: This module is unknown--students will not see it at all"
else
:
else
:
return
""
return
u
""
class
HiddenDescriptor
(
RawDescriptor
):
class
HiddenDescriptor
(
RawDescriptor
):
...
...
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