%PDF- %PDF-
Direktori : /lib/python3/dist-packages/certbot/_internal/__pycache__/ |
Current File : //lib/python3/dist-packages/certbot/_internal/__pycache__/eff.cpython-312.pyc |
� M/�e� � �2 � d Z ddlZddlmZ ddlZddlmZ ddlmZ ddl m Z ddl mZ ddlm Z ej e� Zd ej$ d e ddfd�Zd ej$ d ee ddfd �Zdefd�Zdeddfd�Zdej2 ddfd�Zddee ddfd�Zy)z'Subscribes users to the EFF newsletter.� N)�Optional)� configuration)� constants)�Account)�AccountFileStorage)�util�config�acc�returnc � � | j du ry| j du rD| j �t d� nm|j j | j �� |_ nA| j r5t � r+|j j | j �� |_ |j j rt | � }|j |� yy)a� High level function to store potential EFF newsletter subscriptions. The user may be asked if they want to sign up for the newsletter if they have not given their explicit approval or refusal using --eff-mail or --no-eff-mail flag. Decision about EFF subscription will be stored in the account metadata. :param configuration.NamespaceConfig config: Client configuration. :param Account acc: Current client account. FNTz$you didn't provide an e-mail address��register_to_eff) � eff_email�email�_report_failure�meta�update�_want_subscriptionr r �update_meta�r r �storages �7/usr/lib/python3/dist-packages/certbot/_internal/eff.py�prepare_subscriptionr s� � � ���5� �� ���4���<�<���B�C��x�x���v�|�|��D�C�H� ���,�.��8�8�?�?�6�<�<�?�@��� �x�x���$�V�,�����C� � � c � � | j s|sy|j j r]t |j j � |j j d�� |_ t | � }|j |� yy)a High level function to take care of EFF newsletter subscriptions. Once subscription is handled, it will not be handled again. :param configuration.NamespaceConfig config: Client configuration. :param Account acc: Current client account. Nr )�dry_runr r � subscriber r r r s r �handle_subscriptionr , sb � � �~�~�S�� �x�x����#�(�(�*�*�+��8�8�?�?�4�?�8���$�V�,�����C� � r c �4 � d} t j | d�� S )z�Does the user want to be subscribed to the EFF newsletter? :returns: True if we should subscribe the user, otherwise, False :rtype: bool ao Would you be willing, once your first certificate is successfully issued, to share your email address with the Electronic Frontier Foundation, a founding partner of the Let's Encrypt project and the non-profit organization that develops Certbot? We'd like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom. F)�default)�display_util�yesno)�prompts r r r ? s"