MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdataset.pyc
mò
Ò¥€Oc@sÖdZdkZdkZdkZdkZdkZdkZdkZdk	Zei
iZdei
ifd„ƒYZdei
ifd„ƒYZdei
ifd„ƒYZd„Zd	„Zd
„Zd„ZdS(sHDNS rdatasets (an rdataset is a set of rdatas of a given type and class)NtDifferingCoverscBstZdZRS(sƒRaised if an attempt is made to add a SIG/RRSIG whose covered type
    is not the same as that of the other rdatas in the rdataset.(t__name__t
__module__t__doc__(((t0/usr/lib/python2.4/site-packages/dns/rdataset.pyRstIncompatibleTypescBstZdZRS(sBRaised if an attempt is made to add rdata of an incompatible type.(RRR(((RR$stRdatasetcBsÂtZdZddddgZeiid„Zd„Zd„Z	e
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Ze
e
ee
d„Ze
e
e
ed„Zd„ZRS(sÝA DNS rdataset.

    @ivar rdclass: The class of the rdataset
    @type rdclass: int
    @ivar rdtype: The type of the rdataset
    @type rdtype: int
    @ivar covers: The covered type.  Usually this value is
    dns.rdatatype.NONE, but if the rdtype is dns.rdatatype.SIG or
    dns.rdatatype.RRSIG, then the covers value will be the rdata
    type the SIG/RRSIG covers.  The library treats the SIG and RRSIG
    types as if they were a family of
    types, e.g. RRSIG(A), RRSIG(NS), RRSIG(SOA).  This makes RRSIGs much
    easier to work with than if RRSIGs covering different rdata
    types were aggregated into a single RRSIG rdataset.
    @type covers: int
    @ivar ttl: The DNS TTL (Time To Live) value
    @type ttl: int
    trdclasstrdtypetcoverstttlcCs;tt|ƒiƒ||_||_||_d|_dS(s©Create a new rdataset of the specified class and type.

        @see: the description of the class instance variables for the
        meaning of I{rdclass} and I{rdtype}iN(tsuperRtselft__init__RRR	R
(RRRR	((RR
>s			cCsItt|ƒiƒ}|i|_|i|_|i|_|i|_|S(N(	RRRt_clonetobjRRR	R
(RR((RRJscCsAt|ƒdjo
||_n||ijo
||_ndS(sàSet the TTL of the rdataset to be the lesser of the set's current
        TTL or the specified TTL.  If the set contains no rdatas, set the TTL
        to the specified TTL.
        @param ttl: The TTL
        @type ttl: intiN(tlenRR
(RR
((Rt
update_ttlRs

cCs+|i|ijp|i|ijo
t‚n|dj	o|i|ƒn|iti	i
jp|iti	ijo`|iƒ}t
|ƒdjo#|iti	ijo
||_qÚ|i|jo
t‚qÚnti	i|iƒo!t
|ƒdjo|iƒntt|ƒi|ƒdS(s%Add the specified rdata to the rdataset.

        If the optional I{ttl} parameter is supplied, then
        self.update_ttl(ttl) will be called prior to adding the rdata.

        @param rd: The rdata
        @type rd: dns.rdata.Rdata object
        @param ttl: The TTL
        @type ttl: intiN(RRtrdRRR
tNoneRtdnst	rdatatypetRRSIGtSIGR	RtNONERtis_singletontclearRRtadd(RRR
R	((RR^s	&

,)
)cCs*|i|iƒtt|ƒi|ƒdS(N(RRtotherR
RRtunion_update(RR((RR~scCs*|i|iƒtt|ƒi|ƒdS(N(RRRR
RRtintersection_update(RR((RR‚scCs*|i|iƒtt|ƒi|ƒdS(s‹Add all rdatas in other to self.

        @param other: The rdataset from which to update
        @type other: dns.rdataset.Rdataset objectN(RRRR
RRtupdate(RR((RR†scCsm|idjo
d}ndtii|iƒd}dtii|iƒdtii|iƒ|dS(Nitt(t)s<DNS t s
 rdataset>(	RR	tctextRRtto_textt
rdataclassRR(RR$((Rt__repr__s
cCs
|iƒS(N(RR%(R((Rt__str__—scCsot|tƒptSn|i|ijp&|i|ijp|i|ijotSntt|ƒi	|ƒS(sTwo rdatasets are equal if they have the same class, type, and
        covers, and contain the same rdata.
        @rtype: boolN(
t
isinstanceRRtFalseRRRR	Rt__eq__(RR((RR+šs9cCs|i|ƒS(N(RR+R(RR((Rt__ne__§scKs+|d	j	o(|i||ƒ}t|ƒ}	d}n
d}	d}tiƒ}|d	j	o
|}
n
|i}
t
|ƒdjo9|d|	|tii|
ƒtii|iƒfIJnexa|D]Y}|d|	||itii|
ƒtii|iƒ|id|d||fIJqÀW|iƒd S(
s„Convert the rdataset into DNS master file format.

        @see: L{dns.name.Name.choose_relativity} for more information
        on how I{origin} and I{relativize} determine the way names
        are emitted.

        Any additional keyword arguments are passed on to the rdata
        to_text() method.

        @param name: If name is not None, emit a RRs with I{name} as
        the owner name.
        @type name: dns.name.Name object
        @param origin: The origin for relative names, or None.
        @type origin: dns.name.Name object
        @param relativize: True if names should names be relativized
        @type relativize: boolR#R is	%s%s%s %ss%s%s%d %s %s %storigint
relativizeiÿÿÿÿN(tnameRtchoose_relativityR-R.tstrtntexttpadtStringIOtstoverride_rdclassRRRRR&R%RRRR
tkwtgetvalue(RR/R-R.R6R7RR5R3R2R((RR%ªs"



	9Wc
Cs |dj	o|}t}n
|i}|iddƒt|ƒdjoF|i
|||ƒt
id|i|ddƒ}
|i|
ƒdSn|ot|ƒ}ti|ƒn|}xÖ|D]Î}	|i
|||ƒt
id|i||idƒ}
|i|
ƒ|iƒ}|	i
|||ƒ|iƒ}||djpt‚|i|dƒt
id||ƒ}
|i|
ƒ|iddƒqÀWt|ƒSdS(s,Convert the rdataset to wire format.

        @param name: The owner name of the RRset that will be emitted
        @type name: dns.name.Name object
        @param file: The file to which the wire format data will be appended
        @type file: file
        @param compress: The compression table to use; the default is None.
        @type compress: dict
        @param origin: The origin to be appended to any relative names when
        they are emitted.  The default is None.
        @returns: the number of records emitted
        @rtype: int
        iis!HHIHiis!HN(R6RRR*twant_shuffleRtfiletseekRR/tto_wiretcompressR-tstructtpackRtstufftwritetlisttltrandomtshuffleRR
ttelltstarttendtAssertionError(
RR/R:R=R-R6R9RGRCRR@RHR((RR<Üs<

	


cCs<|i|jo(|i|jo|i|jotSntS(sSReturns True if this rdataset matches the specified class, type,
        and coversN(RRRR	tTrueR*(RRRR	((Rtmatchs0(RRRt	__slots__RRRR
RRRRRRRR'R(R+R,RJR%R<RK(((RR(s 		 							
	20cCs´t|ttfƒotii|ƒ}nt|ttfƒotii|ƒ}nt	||ƒ}|i|ƒx9|D]1}tii|i|i|ƒ}|i|ƒq{W|S(s¤Create an rdataset with the specified class, type, and TTL, and with
    the specified list of rdatas in text format.

    @rtype: dns.rdataset.Rdataset object
    N(R)RR1tunicodeRR&t	from_textRRRtrRR
ttext_rdatastttrdataRR(RRR
RPRRORQ((Rtfrom_text_lists
cGst||||ƒS(sœCreate an rdataset with the specified class, type, and TTL, and with
    the specified rdatas in text format.

    @rtype: dns.rdataset.Rdataset object
    N(RSRRR
RP(RRR
RP((RRN'scCs„t|ƒdjotdƒ‚nd}xT|D]L}|djo,t|i|iƒ}|i	|ƒt}n|i
|ƒq0W|S(s‹Create an rdataset with the specified TTL, and with
    the specified list of rdata objects.

    @rtype: dns.rdataset.Rdataset object
    isrdata list must not be emptyN(Rtrdatast
ValueErrorRRORRRRRR
R*t
first_timeR(R
RTRVRRO((Rtfrom_rdata_list0s


cGs
t||ƒS(sƒCreate an rdataset with the specified TTL, and with
    the specified rdata objects.

    @rtype: dns.rdataset.Rdataset object
    N(RWR
RT(R
RT((Rt
from_rdataBs(RRDR4R>t
dns.exceptionRt
dns.rdatatypetdns.rdataclasst	dns.rdatatdns.settsettSett	SimpleSett	exceptiontDNSExceptionRRRRSRNRWRX(RNRRR>R4RWRDRR`RRXRS((Rt?s 								í