* INCR-230 - Run python-modernize and isort on common/lib/xmodule/xmodule, plus a few minor fixes suggested by Jeremy
21 lines
455 B
Python
21 lines
455 B
Python
from __future__ import absolute_import
|
|
|
|
from xmodule.raw_module import RawDescriptor
|
|
from xmodule.x_module import XModule
|
|
|
|
|
|
class HiddenModule(XModule):
|
|
|
|
HIDDEN = True
|
|
|
|
def get_html(self):
|
|
if self.system.user_is_staff:
|
|
return u"ERROR: This module is unknown--students will not see it at all"
|
|
else:
|
|
return u""
|
|
|
|
|
|
class HiddenDescriptor(RawDescriptor):
|
|
module_class = HiddenModule
|
|
resources_dir = None
|