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/node.pyc
mò
‰æ,Qc@sDdZdkZdkZdkZdkZdefd„ƒYZdS(s)DNS nodes.  A node is a set of rdatasets.NtNodecBs›tZdZdgZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
eii
ed	„Zeii
ed
„Zeii
d„Zd„ZRS(
s“A DNS node.

    A node is a set of rdatasets

    @ivar rdatasets: the node's rdatasets
    @type rdatasets: list of dns.rdataset.Rdataset objectst	rdatasetscCs
g|_dS(sInitialize a DNS node.
        N(tselfR(R((t,/usr/lib/python2.4/site-packages/dns/node.pyt__init__"scKs[tiƒ}x>|iD]3}t|ƒdjo||i||IJqqW|i	ƒd S(s+Convert a node to text format.

        Each rdataset at the node is printed.  Any keyword arguments
        to this method are passed on to the rdataset's to_text() method.
        @param name: the owner name of the rdatasets
        @type name: dns.name.Name object
        @rtype: string
        iiÿÿÿÿN(
tStringIOtsRRtrdstlentto_texttnametkwtgetvalue(RR
RRR((RR	(s
cCsdtt|ƒƒdS(Ns
<DNS node t>(tstrtidR(R((Rt__repr__8scCs\x)|iD]}||ijotSq
q
Wx)|iD]}||ijotSq6q6WtS(sSTwo nodes are equal if they have the same rdatasets.

        @rtype: bool
        N(RRtrdtothertFalsetTrue(RRR((Rt__eq__;s

cCs|i|ƒS(N(RRR(RR((Rt__ne__KscCs
t|iƒS(N(RRR(R((Rt__len__NscCs
t|iƒS(N(titerRR(R((Rt__iter__QscCslx/|iD]$}|i|||ƒo|Sq
q
W|p
t‚nt	i
i||ƒ}|ii|ƒ|S(sFind an rdataset matching the specified properties in the
        current node.

        @param rdclass: The class of the rdataset
        @type rdclass: int
        @param rdtype: The type of the rdataset
        @type rdtype: int
        @param 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
        @param create: If True, create the rdataset if it is not found.
        @type create: bool
        @raises KeyError: An rdataset of the desired type and class does
        not exist and I{create} is not True.
        @rtype: dns.rdataset.Rdataset object
        N(
RRRtmatchtrdclasstrdtypetcoverstcreatetKeyErrortdnstrdatasettRdatasettappend(RRRRRR((Rt
find_rdatasetTs

cCs<y|i||||ƒ}Wntj
o
d}nX|S(sEGet an rdataset matching the specified properties in the
        current node.

        None is returned if an rdataset of the specified type and
        class does not exist and I{create} is not True.

        @param rdclass: The class of the rdataset
        @type rdclass: int
        @param rdtype: The type of the rdataset
        @type rdtype: int
        @param covers: The covered type.
        @type covers: int
        @param create: If True, create the rdataset if it is not found.
        @type create: bool
        @rtype: dns.rdataset.Rdataset object or None
        N(	RR$RRRRRRtNone(RRRRRR((Rtget_rdatasetvscCs:|i|||ƒ}|dj	o|ii|ƒndS(szDelete the rdataset matching the specified properties in the
        current node.

        If a matching rdataset does not exist, it is not an error.

        @param rdclass: The class of the rdataset
        @type rdclass: int
        @param rdtype: The type of the rdataset
        @type rdtype: int
        @param covers: The covered type.
        @type covers: int
        N(	RR&RRRRR%Rtremove(RRRRR((Rtdelete_rdatasets
cCsSt|tiiƒp
td‚n|i|i|i	|i
ƒ|ii|ƒdS(s8Replace an rdataset.

        It is not an error if there is no rdataset matching I{replacement}.

        Ownership of the I{replacement} object is transferred to the node;
        in other words, this method does not store a copy of I{replacement}
        at the node, it stores I{replacement} itself.
        sreplacement is not an rdatasetN(
t
isinstancetreplacementR R!R"t
ValueErrorRR(RRRRR#(RR*((Rtreplace_rdataset¡s

(t__name__t
__module__t__doc__t	__slots__RR	RRRRRR t	rdatatypetNONERR$R&R(R,(((RRs								"(R/Rtdns.rdatasetR t
dns.rdatatypetdns.renderertobjectR(RR R((Rt?s