| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/reportlab/lib/__pycache__/ |
Upload File : |
�
}G�b� � � � d Z dZddlmZmZ ddlmZ ddlmZ G d� d� � Z G d� d � � Z
G d
� de� � Zd� Z
dd
�Zd� Zd� Zdd�ZdS )z3.3.0a� Framework for objects whose assignments are checked. Used by graphics.
We developed reportlab/graphics prior to Python 2 and metaclasses. For the
graphics, we wanted to be able to declare the attributes of a class, check
them on assignment, and convert from string arguments. Examples of
attrmap-based objects can be found in reportlab/graphics/shapes. It lets
us defined structures like the one below, which are seen more modern form in
Django models and other frameworks.
We'll probably replace this one day soon, hopefully with no impact on client
code.
class Rect(SolidShape):
"""Rectangle, possibly with rounded corners."""
_attrMap = AttrMap(BASE=SolidShape,
x = AttrMapValue(isNumber),
y = AttrMapValue(isNumber),
width = AttrMapValue(isNumber),
height = AttrMapValue(isNumber),
rx = AttrMapValue(isNumber),
ry = AttrMapValue(isNumber),
)
� )�
isAnything�DerivedValue)�isSeq)� rl_configc � � e Zd ZdZd� Zd� ZdS )�
CallableValuez(a class to allow callable initial valuesc �0 � || _ || _ || _ d S �N��func�args�kw)�selfr r
r s �7/usr/lib/python3/dist-packages/reportlab/lib/attrmap.py�__init__zCallableValue.__init__% s � ��� ��� ������ c �0 � | j | j i | j ��S r
r �r s r �__call__zCallableValue.__call__+ s � ��t�y�$�)�.�d�g�.�.�.r N)�__name__�
__module__�__qualname__�__doc__r r � r r r r # s8 � � � � � �2�2�� � �/� /� /� /� /r r c �&