예제 #1
0
 def _certificates_validation(self, course):
     is_activated, certificates = CertificateManager.is_activated(course)
     certificates_enabled = certificates is not None
     return dict(
         is_activated=is_activated,
         has_certificate=certificates_enabled and len(certificates) > 0,
         is_enabled=certificates_enabled,
     )
예제 #2
0
 def _certificates_validation(self, course):
     is_activated, certificates = CertificateManager.is_activated(course)
     certificates_enabled = certificates is not None
     return dict(
         is_activated=is_activated,
         has_certificate=certificates_enabled and len(certificates) > 0,
         is_enabled=certificates_enabled,
     )
예제 #3
0
 def _certificates_validation(self, course):
     is_activated, certificates = CertificateManager.is_activated(course)
     return dict(
         is_activated=is_activated,
         has_certificate=len(certificates) > 0,
     )