app/soc/views/helper/access.py
changeset 2101 d6250eac3ab0
parent 2077 fd2e83a297c7
child 2112 9a2c9354468c
equal deleted inserted replaced
2100:601c69a8976d 2101:d6250eac3ab0
   443 
   443 
   444     If none of the specified checks passes, the exception that the first of the
   444     If none of the specified checks passes, the exception that the first of the
   445     checks raised is reraised.
   445     checks raised is reraised.
   446     """
   446     """
   447 
   447 
   448     first = Exception()
   448     first = None
   449 
   449 
   450     for checker_name, args in checks:
   450     for checker_name, args in checks:
   451       try:
   451       try:
   452         self.doCheck(checker_name, django_args, args)
   452         self.doCheck(checker_name, django_args, args)
   453         # one check passed, all is well
   453         # one check passed, all is well