from __future__ import absolute_import
# Standard modules
-import sys
-import os
import logging
import copy
import datetime
# Third party modules
-import dns.resolver
from dns.resolver import Resolver, NoAnswer
# Own modules
-from .common import pp, to_bytes, to_utf8, to_bool
+from .common import pp, to_utf8, to_bool
from .common import RE_DOT_AT_END
-from .errors import PpError
from .obj import PpBaseObjectError, PpBaseObject
from .pdns_record import PdnsApiRrset, PdnsSoaData
-__version__ = '0.5.3'
+__version__ = '0.5.4'
LOG = logging.getLogger(__name__)
# -------------------------------------------------------------------------
def __init__(
- self, appname=None, verbose=0, version=__version__, base_dir=None, initialized=None,
+ self, appname=None, verbose=0, version=__version__, base_dir=None, initialized=None,
account=None, dnssec=False, id=None, kind=None, last_check=None,
masters=None, name=None, notified_serial=None, serial=None, url=None,
rrsets=None, soa_edit=None, soa_edit_api=None, nsec3narrow=None, nsec3param=None,
presigned=None, api_rectify=None):
-# { 'account': 'local',
-# 'dnssec': False,
-# 'id': 'bla.ai.',
-# 'kind': 'Master',
-# 'last_check': 0,
-# 'masters': [],
-# 'name': 'bla.ai.',
-# 'notified_serial': 2017080404,
-# 'serial': 2017080404,
-# 'url': 'api/v1/servers/localhost/zones/bla.ai.'},
+ # { 'account': 'local',
+ # 'dnssec': False,
+ # 'id': 'bla.ai.',
+ # 'kind': 'Master',
+ # 'last_check': 0,
+ # 'masters': [],
+ # 'name': 'bla.ai.',
+ # 'notified_serial': 2017080404,
+ # 'serial': 2017080404,
+ # 'url': 'api/v1/servers/localhost/zones/bla.ai.'},
self._account = account
self._dnssec = dnssec
self._id = id
# -----------------------------------------------------------
@classmethod
def init_from_dict(
- cls, data, appname=None, verbose=0, version=__version__, base_dir=None, initialized=None):
+ cls, data,
+ appname=None, verbose=0, version=__version__, base_dir=None, initialized=None):
if not isinstance(data, dict):
raise PdnsApiZoneError("Given data {!r} is not a dict object.".format(data))