Ensure kvs up-to-date if code accessing it.

This commit is contained in:
Don Mitchell
2013-07-19 14:55:49 -04:00
parent 62afa23a0d
commit 549ef5d494

View File

@@ -674,6 +674,8 @@ class XModuleDescriptor(XModuleFields, HTMLSnippet, ResourceTemplates, XBlock):
"""
Use w/ caution. Really intended for use by the persistence layer.
"""
# if caller wants kvs, caller's assuming it's up to date; so, decache it
self.save()
return self._model_data._kvs
# =============================== BUILTIN METHODS ==========================