Tracks last edited date and user, and adds has_changes for blocks.

This commit is contained in:
Ben McMorran
2014-06-09 15:53:40 -04:00
parent b60b7c7e5a
commit ea97dd4508
11 changed files with 222 additions and 26 deletions

View File

@@ -13,6 +13,7 @@ from xmodule.x_module import XModule, XModuleDescriptor
from xmodule.errortracker import exc_info_to_str
from xblock.fields import String, Scope, ScopeIds
from xblock.field_data import DictFieldData
from xmodule.modulestore.xml_exporter import EdxJSONEncoder
log = logging.getLogger(__name__)
@@ -121,7 +122,7 @@ class ErrorDescriptor(ErrorFields, XModuleDescriptor):
def from_json(cls, json_data, system, location, error_msg='Error not available'):
return cls._construct(
system,
json.dumps(json_data, skipkeys=False, indent=4),
json.dumps(json_data, skipkeys=False, indent=4, cls=EdxJSONEncoder),
error_msg,
location=location
)