File: //opt/alt/python37/lib/python3.7/site-packages/dns/__pycache__/transaction.cpython-37.pyc
B
��f}T � @ s* d dl mZmZmZmZmZmZ d dlZd dlZ d dl
Z d dlZ d dlZ d dl
Z d dlZ d dlZ d dlZ d dlZ G dd� d�ZG dd� de jj�ZG dd� de jj�ZG d d
� d
e jj�Zdd� Zd
d� Zede jje jjgdf Zede jje jj e jj gdf Z!ede jjgdf Z"G dd� d�Z#dS )� )�Any�Callable�List�Optional�Tuple�UnionNc @ s| e Zd Zdd�dd�Zdedd�dd�Zeeej j
eeej j
f d�d d
�Zejj
d�dd�Zeej j
d�d
d�ZdS )�TransactionManager�Transaction)�returnc C s t �dS )zBegin a read-only transaction.N)�NotImplementedError)�self� r
�@/opt/alt/python37/lib/python3.7/site-packages/dns/transaction.py�reader s zTransactionManager.readerF)�replacementr
c C s t �dS )a Begin a writable transaction.
*replacement*, a ``bool``. If `True`, the content of the
transaction completely replaces any prior content. If False,
the default, then the content of the transaction updates the
existing content.
N)r )r r r
r
r �writer s zTransactionManager.writerc C s t �dS )aq Returns a tuple
(absolute_origin, relativize, effective_origin)
giving the absolute name of the default origin for any
relative domain names, the "effective origin", and whether
names should be relativized. The "effective origin" is the
absolute origin if relativize is False, and the empty name if
relativize is true. (The effective origin is provided even
though it can be computed from the absolute_origin and
relativize setting because it avoids a lot of code
duplication.)
If the returned names are `None`, then no origin information is
available.
This information is used by code working with transactions to
allow it to coordinate relativization. The transaction code
itself takes what it gets (i.e. does not change name
relativity).
N)r )r r
r
r �origin_information! s z%TransactionManager.origin_informationc C s t �dS )z%The class of the transaction manager.N)r )r r
r
r � get_class<