Undoes last request_cache change as it leads to errors

EmailTemplateFixes
Denis Krienbühl 2012-01-24 13:21:19 +01:00
parent 9d34dcf55f
commit 85787629ee
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def check_parser(runinfo, exclude=[]):
return satisfies_checks return satisfies_checks
@request_cache(keyfn=lambda *args: args[0].id) @request_cache()
def question_satisfies_checks(question, runinfo, checkfn=None): def question_satisfies_checks(question, runinfo, checkfn=None):
checkfn = checkfn or check_parser(runinfo) checkfn = checkfn or check_parser(runinfo)
return checkfn(question.checks) return checkfn(question.checks)
@ -843,6 +843,7 @@ def dep_check(expr, runinfo, answerdict):
questionset__questionnaire = questionnaire) questionset__questionnaire = questionnaire)
except Question.DoesNotExist: except Question.DoesNotExist:
return False return False
if check_question in answerdict: if check_question in answerdict:
# test for membership in multiple choice questions # test for membership in multiple choice questions
# FIXME: only checking answerdict # FIXME: only checking answerdict