o
    ëË·e
  ã                   @   s4   G d d„ de ƒZddlZedƒZee_eeje< dS )c                   @   s    e Zd Zdd„ Zdd„ Zedd„ ƒZedd„ ƒZed	d
„ ƒZedd„ ƒZ	edd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZdS )ÚAppSettingsc                 C   s
   || _ d S ©N)Úprefix)Úselfr   © r   úY/var/www/ideatree/venv/lib/python3.10/site-packages/allauth/socialaccount/app_settings.pyÚ__init__   s   
zAppSettings.__init__c                    s0   ddl m‰  tˆ d‡ fdd„ƒ}|| j| |ƒS )Né    ©ÚsettingsÚALLAUTH_SETTING_GETTERc                    s   t ˆ | |ƒS r   )Úgetattr)ÚnameÚdfltr	   r   r   Ú<lambda>   s    z&AppSettings._setting.<locals>.<lambda>)Údjango.confr
   r   r   )r   r   r   Úgetterr   r	   r   Ú_setting   s   
ýzAppSettings._settingc                 C   ó   ddl m} |  d|j¡S )zf
        Request e-mail address from 3rd party account provider?
        E.g. using OpenID AX
        r   ©Úapp_settingsÚQUERY_EMAIL©Úallauth.accountr   r   ÚEMAIL_REQUIRED©r   Úaccount_settingsr   r   r   r      s   zAppSettings.QUERY_EMAILc                 C   ó   |   dd¡S )zå
        Attempt to bypass the signup form by using fields (e.g. username,
        email) retrieved from the social account provider. If a conflict
        arises due to a duplicate e-mail signup form will still kick in.
        ÚAUTO_SIGNUPT©r   ©r   r   r   r   r      s   zAppSettings.AUTO_SIGNUPc                 C   ó   |   di ¡S )z,
        Provider specific settings
        Ú	PROVIDERSr   r   r   r   r   r!   "   s   zAppSettings.PROVIDERSc                 C   r   )zU
        The user is required to hand over an e-mail address when signing up
        r   r   r   r   r   r   r   r   r   )   ó   zAppSettings.EMAIL_REQUIREDc                 C   r   )z0
        See e-mail verification method
        r   r   ÚEMAIL_VERIFICATION)r   r   r   r#   r   r   r   r   r#   2   r"   zAppSettings.EMAIL_VERIFICATIONc                 C   r   )NÚADAPTERz9allauth.socialaccount.adapter.DefaultSocialAccountAdapterr   r   r   r   r   r$   ;   s   þzAppSettings.ADAPTERc                 C   r    )NÚFORMSr   r   r   r   r   r%   B   ó   zAppSettings.FORMSc                 C   r   )NÚLOGIN_ON_GETFr   r   r   r   r   r'   F   r&   zAppSettings.LOGIN_ON_GETc                 C   r   )NÚSTORE_TOKENSFr   r   r   r   r   r(   J   r&   zAppSettings.STORE_TOKENSc                 C   s   dS )Né¿   r   r   r   r   r   ÚUID_MAX_LENGTHN   s   zAppSettings.UID_MAX_LENGTHc                 C   s   |   dd ¡S )NÚSOCIALACCOUNT_STRr   r   r   r   r   r+   R   r&   zAppSettings.SOCIALACCOUNT_STRN)Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   r   r!   r   r#   r$   r%   r'   r(   r*   r+   r   r   r   r   r      s2    

	








r   r   NÚSOCIALACCOUNT_)Úobjectr   Úsysr   r,   Úmodulesr   r   r   r   Ú<module>   s
    X