From 0fe2abbbdb00049125da2bd3bacafd8af6fad829 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Tue, 7 Aug 2012 18:39:19 -0400 Subject: [PATCH] Added docstring. --- common/lib/xmodule/xmodule/capa_module.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index 3563e23611..4fefe237a5 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -139,6 +139,13 @@ class CapaModule(XModule): @lazyproperty def lcp(self): + """ + Loading the problem can be fairly expensive, so we do this lazily. + + This can throw errors. Always be sure to use try/catch before + displaying modules to a user. + """ + if self.rerandomize == 'never': seed = 1 elif self.rerandomize == "per_student" and hasattr(self.system, 'id'):