mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Include epplibwrapper module
This commit is contained in:
parent
d3cc3853c1
commit
ce7cfc1a53
14 changed files with 325 additions and 49 deletions
|
@ -7,7 +7,8 @@ from django.db import models
|
|||
from django_fsm import FSMField, transition # type: ignore
|
||||
|
||||
from api.views import in_domains
|
||||
from epp.mock_epp import domain_info, domain_check
|
||||
|
||||
# from epplibwrapper import CLIENT as registry, commands
|
||||
from registrar.utility import errors
|
||||
|
||||
from .utility.time_stamped_model import TimeStampedModel
|
||||
|
@ -129,7 +130,7 @@ class Domain(TimeStampedModel):
|
|||
"""Check if a domain is available.
|
||||
|
||||
Not implemented. Returns a dummy value for testing."""
|
||||
return domain_check(domain)
|
||||
return False # domain_check(domain)
|
||||
|
||||
def transfer(self):
|
||||
"""Going somewhere. Not implemented."""
|
||||
|
@ -146,7 +147,7 @@ class Domain(TimeStampedModel):
|
|||
if not hasattr(self, "info"):
|
||||
try:
|
||||
# get info from registry
|
||||
self.info = domain_info(self.name)
|
||||
self.info = {} # domain_info(self.name)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
# TODO: back off error handling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue