Пример #1
0
 def get_certifications(self):
     """Return dictionary of registrar certifications."""
     if self._certifications is None:
         self._certifications = {
             cert.registrar_handle: cert
             for cert in WHOIS.get_registrar_certification_list()
         }
     return self._certifications
Пример #2
0
 def get(self, request, handle):
     for cert in WHOIS.get_registrar_certification_list():
         # cert: Registry.Whois.RegistrarCertification(registrar_handle='REG-FRED_A', score=2, evaluation_file_id=1L)
         if cert.registrar_handle == handle:
             return self._serve_file(cert.evaluation_file_id)
     raise Http404