from .errors import PpError
from .obj import PpBaseObjectError, PpBaseObject
-__version__ = '0.4.2'
+__version__ = '0.4.3'
LOG = logging.getLogger(__name__)
ttl=match.group(7), appname=appname, verbose=verbose, base_dir=base_dir)
return soa
+ # -------------------------------------------------------------------------
+ def __copy__(self):
+
+ soa = PdnsSoaData(
+ primary=self.primary, email=self.email, serial=self.serial, refresh=self.refresh,
+ retry=self.retry, expire=self.expire, ttl=self.ttl, appname=self.appname,
+ version=self.version, base_dir=self.base_dir)
+ return soa
+
+ # -------------------------------------------------------------------------
+ def __eq__(self, other):
+
+ if not isinstance(other, PdnsSoaData):
+ return False
+
+ if self.primary != other.primary:
+ return False
+ if self.email != other.email:
+ return False
+ if self.serial != other.serial:
+ return False
+ if self.refresh != other.refresh:
+ return False
+ if self.retry != other.retry:
+ return False
+ if self.expire != other.expire:
+ return False
+ if self.ttl != other.ttl:
+ return False
+
+ return True
+
# =============================================================================
class PdnsApiRrset(PpBaseObject):