mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 03:30:50 +02:00
Include epplibwrapper module
This commit is contained in:
parent
d3cc3853c1
commit
ce7cfc1a53
14 changed files with 325 additions and 49 deletions
48
src/epplibwrapper/__init__.py
Normal file
48
src/epplibwrapper/__init__.py
Normal file
|
@ -0,0 +1,48 @@
|
|||
import logging
|
||||
from types import SimpleNamespace
|
||||
|
||||
try:
|
||||
from epplib import constants
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
NAMESPACE = SimpleNamespace(
|
||||
EPP="urn:ietf:params:xml:ns:epp-1.0",
|
||||
XSI="http://www.w3.org/2001/XMLSchema-instance",
|
||||
FRED="noop",
|
||||
NIC_CONTACT="urn:ietf:params:xml:ns:contact-1.0",
|
||||
NIC_DOMAIN="urn:ietf:params:xml:ns:domain-1.0",
|
||||
NIC_ENUMVAL="noop",
|
||||
NIC_EXTRA_ADDR="noop",
|
||||
NIC_HOST="urn:ietf:params:xml:ns:host-1.0",
|
||||
NIC_KEYSET="noop",
|
||||
NIC_NSSET="noop",
|
||||
)
|
||||
|
||||
SCHEMA_LOCATION = SimpleNamespace(
|
||||
XSI="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd",
|
||||
FRED="noop fred-1.5.0.xsd",
|
||||
NIC_CONTACT="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd",
|
||||
NIC_DOMAIN="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd",
|
||||
NIC_ENUMVAL="noop enumval-1.2.0.xsd",
|
||||
NIC_EXTRA_ADDR="noop extra-addr-1.0.0.xsd",
|
||||
NIC_HOST="urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd",
|
||||
NIC_KEYSET="noop keyset-1.3.2.xsd",
|
||||
NIC_NSSET="noop nsset-1.2.2.xsd",
|
||||
)
|
||||
|
||||
try:
|
||||
constants.NAMESPACE = NAMESPACE
|
||||
constants.SCHEMA_LOCATION = SCHEMA_LOCATION
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
# Attn: these imports should NOT be at the top of the file
|
||||
from .client import CLIENT, commands
|
||||
|
||||
__all__ = [
|
||||
"CLIENT",
|
||||
"commands",
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue