%PDF- %PDF-
| Direktori : /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/ |
| Current File : //opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyc |
�
�ac @ sT d Z d d l m Z d d l Z d d l Z d d l Z d e f d � � YZ d S( s) DNS nodes. A node is a set of rdatasets.i����( t StringIONt Nodec B s� e Z d Z d g Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
e j j
e d � Z e j j
e d
� Z e j j
d � Z d � Z RS(
s A Node is a set of rdatasets.t rdatasetsc C s
g | _ d S( N( R ( t self( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyt __init__! s c K sf t � } xL | j D]A } t | � d k r | j | j | | � � | j d � q q W| j � 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.
*name*, a ``dns.name.Name`` or ``text``, the owner name of the rdatasets.
Returns a ``text``.
i u
i����( R R t lent writet to_textt getvalue( R t namet kwt st rds( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyR % s c C s d t t | � � d S( Ns
<DNS node t >( t strt id( R ( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyt __repr__7 s c C sR x$ | j D] } | | j k r
t Sq
Wx$ | j D] } | | j k r1 t Sq1 Wt S( N( R t Falset True( R t othert rd( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyt __eq__: s c C s | j | � S( N( R ( R R ( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyt __ne__F s c C s
t | j � S( N( R R ( R ( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyt __len__I s c C s
t | j � S( N( t iterR ( R ( ( s= /opt/plesk/python/2.7/lib/python2.7/site-packages/dns/node.pyt __iter__L s c C se x* | j D] } | j | | | � r
| Sq
W| s<