get the raw DescriptorSystem, not the CombinedSystem when instantiating xmodules (TNL-1226)

get the raw DescriptorSystem, not the CombinedSystem when instantiating xmodules (TNL-1226)

quality fixes

remove trailing comma
This commit is contained in:
Calen Pennington
2015-02-09 14:07:57 -05:00
committed by Adam Palay
parent e2f67b5cfb
commit 89d4749057
8 changed files with 24 additions and 14 deletions

View File

@@ -185,7 +185,8 @@ def _preview_module_system(request, descriptor, field_data):
wrappers=wrappers,
error_descriptor_class=ErrorDescriptor,
get_user_role=lambda: get_user_role(request.user, course_id),
descriptor_runtime=descriptor.runtime,
# Get the raw DescriptorSystem, not the CombinedSystem
descriptor_runtime=descriptor._runtime, # pylint: disable=protected-access
services={
"i18n": ModuleI18nService(),
"field-data": field_data,