Ë
    hÍtf™  ã                   ór   — d dl mZ d dlmZmZmZ d dlmZ d dlm	Z	m
Z
mZ g d¢Z eedd«      Zd„ Zd	„ Zd
„ Zy)é    )Úsettings)Ú
handler404Ú
handler500Úinclude)Úget_user_model)ÚAnonymousUserÚGroupÚ
Permission)r	   r
   r   r   Úuser_model_labelr   r   r   ÚAUTH_USER_MODELú	auth.Userc                  ó$   — t        t        dd«      S )z®
    Returns 'app_label.ModelName' for User model. Basically if
    ``AUTH_USER_MODEL`` is set at settings it would be returned, otherwise
    ``auth.User`` is returned.
    r   r   )Úgetattrr   © ó    úY/var/www/html/software/conda/envs/higlass/lib/python3.12/site-packages/guardian/compat.pyÚget_user_model_pathr      s   € ô ”8Ð.°Ó<Ð<r   c                 ó   — t        «       }|j                  j                  }dj                  |j                  j                  | |«      S )zë
    Returns 'app_label.<perm>_<usermodulename>'. If standard ``auth.User`` is
    used, for 'change' perm this would return ``auth.change_user`` and if
    ``myapp.CustomUser`` is used it would return ``myapp.change_customuser``.
    z{}.{}_{})r   Ú_metaÚ
model_nameÚformatÚ	app_label)ÚpermÚUserr   s      r   Ú!get_user_permission_full_codenamer   !   s:   € ô Ó€DØ—‘×&Ñ&€JØ×Ñ˜TŸZ™Z×1Ñ1°4¸ÓDÐDr   c                 ó<   — t        | «      j                  d«      d   S )zÖ
    Returns '<perm>_<usermodulename>'. If standard ``auth.User`` is
    used, for 'change' perm this would return ``change_user`` and if
    ``myapp.CustomUser`` is used it would return ``change_customuser``.
    ú.é   )r   Úsplit)r   s    r   Úget_user_permission_codenamer    ,   s   € ô -¨TÓ2×8Ñ8¸Ó=¸aÑ@Ð@r   N)Údjango.confr   Údjango.conf.urlsr   r   r   Údjango.contrib.authr   Údjango.contrib.auth.modelsr   r	   r
   Ú__all__r   r   r   r   r    r   r   r   ú<module>r&      sA   ðÝ  ß <Ñ <Ý .ß GÑ Gò	€ñ ˜8Ð%6¸ÓDÐ ò=òEóAr   