%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyc

�
�ac@s�dZddlZddlZddlZddlZddlmZdejj	fd��YZ
dd�Zd�Z
dd	�Zd
�ZdS(s)DNS RRsets (an RRset is a named rdataset)i����Ni(tstring_typestRRsetcBs�eZdZddgZejjdd�Zd�Z	d�Z
d�Zd�Zdd�Z
ded	�Zddd
�Zd�ZRS(
s6A DNS RRset (named rdataset).

    RRset inherits from Rdataset, and RRsets can be treated as
    Rdatasets in most cases.  There are, however, a few notable
    exceptions.  RRsets have different to_wire() and to_text() method
    arguments, reflecting the fact that RRsets always have an owner
    name.
    tnametdeletingcCs2tt|�j|||�||_||_dS(sCreate a new RRset.N(tsuperRt__init__RR(tselfRtrdclasstrdtypetcoversR((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyR)s	cCs1tt|�j�}|j|_|j|_|S(N(RRt_cloneRR(Rtobj((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyR
1scCs�|jdkrd}ndtjj|j�d}|jdk	r`dtjj|j�}nd}dt|j�dtjj|j	�dtjj|j
�||dS(	Nitt(t)s delete=s<DNS t s RRset>(R	tdnst	rdatatypetto_textRtNonet
rdataclasststrRRR(Rtctexttdtext((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyt__repr__7s	cCs
|j�S(N(R(R((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyt__str__DscCs?t|t�stS|j|jkr)tStt|�j|�S(N(t
isinstanceRtFalseRRt__eq__(Rtother((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyRGs
cCsHtt|�j|||�s"tS|j|ks@|j|krDtStS(snReturns ``True`` if this rrset matches the specified class, type,
        covers, and deletion state.
        (RRtmatchRRRtTrue(RRRRR	R((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyRNs
cKs(tt|�j|j|||j|�S(s�Convert the RRset into DNS master file format.

        See ``dns.name.Name.choose_relativity`` for more information
        on how *origin* and *relativize* determine the way names
        are emitted.

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

        *origin*, a ``dns.name.Name`` or ``None``, the origin for relative
        names.

        *relativize*, a ``bool``.  If ``True``, names will be relativized
        to *origin*.
        (RRRRR(Rtorigint
relativizetkw((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyRYscKs+tt|�j|j||||j|�S(s�Convert the RRset to wire format.

        All keyword arguments are passed to ``dns.rdataset.to_wire()``; see
        that function for details.

        Returns an ``int``, the number of records emitted.
        (RRtto_wireRR(RtfiletcompressR R"((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyR#ms	cCstjj|jt|��S(sYConvert an RRset into an Rdataset.

        Returns a ``dns.rdataset.Rdataset``.
        (Rtrdatasettfrom_rdata_listtttltlist(R((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pytto_rdatasetysN(t__name__t
__module__t__doc__t	__slots__RRtNONERRR
RRRRRRR#R*(((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyRs				
		c	Cs�t|t�r-tjj|dd|�}nt|t�rQtjj|�}nt|t�rutjj|�}nt|||�}|j	|�x9|D]1}tj
j|j|j|�}|j
|�q�W|S(s�Create an RRset with the specified name, TTL, class, and type, and with
    the specified list of rdatas in text format.

    Returns a ``dns.rrset.RRset`` object.
    t
idna_codecN(RRRRt	from_textRRRRt
update_ttltrdataRRtadd(	RR(RRttext_rdatasR0trtttrd((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pytfrom_text_list�s

cGst|||||�S(s�Create an RRset with the specified name, TTL, class, and type and with
    the specified rdatas in text format.

    Returns a ``dns.rrset.RRset`` object.
    (R9(RR(RRR5((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyR1�scCs�t|t�r-tjj|dd|�}nt|�dkrNtd��nd}xO|D]G}|dkr�t||j	|j
�}|j|�n|j|�q[W|S(s�Create an RRset with the specified name and TTL, and with
    the specified list of rdata objects.

    Returns a ``dns.rrset.RRset`` object.
    R0isrdata list must not be emptyN(
RRRRR1Rtlent
ValueErrorRRRR2R4(RR(trdatasR0R6R8((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyR'�s
cGst|||�S(s�Create an RRset with the specified name and TTL, and with
    the specified rdata objects.

    Returns a ``dns.rrset.RRset`` object.
    (R'(RR(R<((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyt
from_rdata�s(R-tdns.nameRtdns.rdatasettdns.rdataclasstdns.renderert_compatRR&tRdatasetRRR9R1R'R=(((s>/opt/plesk/python/2.7/lib/python2.7/site-packages/dns/rrset.pyt<module>sf	


Zerion Mini Shell 1.0