Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/openpyxl/worksheet/__pycache__/protection.cpython-37.pyc
Назад
B �5�g� � @ sb d dl mZmZmZmZ d dlmZ d dlmZ d dl m Z G dd� de�ZG dd� dee�Z d S ) � )�Bool�String�Alias�Integer)�Serialisable)�Base64Binary)� hash_passwordc @ s4 e Zd ZdZd dd�Zedd� �Zejdd� �ZdS ) � _ProtectedN� Fc C s |st |�}|| _dS )zSet a password on this sheet.N)r � _password)�self�value�already_hashed� r �S/home/digitalm-up/venv/lib/python3.7/site-packages/openpyxl/worksheet/protection.py�set_password s z_Protected.set_passwordc C s | j S )z.Return the password value, regardless of hash.)r )r r r r �password s z_Protected.passwordc C s | � |� dS )z-Set a password directly, forcing a hash step.N)r )r r r r r r s )r F)�__name__� __module__�__qualname__r r �propertyr �setterr r r r r s r c s� e Zd ZdZdZe� Zed�Ze� Z e� Z e� Ze� Ze� Z e� Ze� Ze� Ze� Ze� Ze� Ze� Ze� Ze� Ze� Zedd�Zedd�Zedd�Zedd�ZdZdd d �Z d� fdd � Z!dd� Z"dd� Z#dd� Z$� Z%S )�SheetProtectionz� Information about protection of various aspects of a sheet. True values mean that protection for the object or action is active This is the **default** when protection is active, ie. users cannot do something ZsheetProtection�sheetT)� allow_none)�selectLockedCells�selectUnlockedCells� algorithmNamer �objects� insertRows�insertHyperlinks� autoFilter� scenarios� formatColumns� deleteColumns� insertColumns�pivotTables� deleteRows�formatCells� saltValue� formatRows�sort� spinCountr � hashValueFNc C s� || _ || _|| _|| _|| _|| _|| _|| _| | _| | _ || _ || _| | _|| _ || _|| _|d k rn|| _|| _|| _|| _|| _d S )N)r r r"