Skip to content

Commit

Permalink
improvements in code; fix info in UA zones; add attributes to keysys
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeroot authored and hiqsol committed Nov 16, 2021
1 parent aba7a21 commit 27a1f19
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions heppy/modules/contact.py
Expand Up @@ -169,6 +169,9 @@ def render_contact_info(self, request, data, parent):
request.add_subtag(parent, 'contact:email', text=data.get('email'))

def render_disclose(self, request, data, parent):
if (data is None):
return request

disclose = request.add_subtag(parent, 'contact:disclose', {"flag": data})
request.add_subtag(disclose, 'contact:name', {"type": "int"})
request.add_subtag(disclose, 'contact:name', {"type": "loc"})
Expand Down
8 changes: 8 additions & 0 deletions heppy/modules/domain_hm.py
@@ -1,8 +1,16 @@
from domain import domain

from ..TagData import TagData

class domain_hm(domain):
CONTACT_TYPES = (
'admin',
'tech',
)

def render_info(self, request, data):
command = self.render_command_with_fields(request, 'info', [
TagData('name', data.get('name'), {})
])
if 'pw' in data:
self.render_auth_info(request, command, data['pw'])
5 changes: 5 additions & 0 deletions heppy/modules/keysys.py
Expand Up @@ -47,6 +47,11 @@ class keysys(Module):
'ownerchangestatus': 'set',
'be-requestauthcode': 'set',
'dnsbe-contact-type': 'set',
'old-nameserver0': 'set',
'old-nameserver1': 'set',
'old-nameserver2': 'set',
'old-nameserver3': 'set',
'time-to-suspension': 'set',
}

def __init__(self, xmlns):
Expand Down

0 comments on commit 27a1f19

Please sign in to comment.