genericizing transformer

This commit is contained in:
Sanford Student
2016-07-12 16:32:00 -04:00
parent 95800be01f
commit 4e65b1f14b
7 changed files with 282 additions and 236 deletions

View File

@@ -117,6 +117,14 @@ class ProctoringFields(object):
scope=Scope.settings,
)
@property
def is_timed_exam(self):
"""
Alias the permutation of above fields that corresponds to un-proctored timed exams
to the more clearly-named is_timed_exam
"""
return not self.is_proctored_enabled and not self.is_practice_exam and self.is_time_limited
@property
def is_proctored_exam(self):
""" Alias the is_proctored_enabled field to the more legible is_proctored_exam """