
    hw                     2     " S  S5      r  " S S5      rS rg)c                   2    \ rS rSrS rS rS rS rS rSr	g)	PermLookupDict   c                      XsU l         U l        g N)user	app_label)selfr   r   s      X/var/www/html/env/lib/python3.13/site-packages/django/contrib/auth/context_processors.py__init__PermLookupDict.__init__   s    $(!	4>    c                 H    [        U R                  R                  5       5      $ r   )strr   get_all_permissionsr	   s    r
   __repr__PermLookupDict.__repr__	   s    49900233r   c                 Z    U R                   R                  U R                  < SU< 35      $ )N.)r   has_permr   )r	   	perm_names     r
   __getitem__PermLookupDict.__getitem__   s     yy!!T^^Y"GHHr   c                     [        S5      e)NzPermLookupDict is not iterable.	TypeErrorr   s    r
   __iter__PermLookupDict.__iter__   s     9::r   c                 L    U R                   R                  U R                  5      $ r   )r   has_module_permsr   r   s    r
   __bool__PermLookupDict.__bool__   s    yy))$..99r   )r   r   N)
__name__
__module____qualname____firstlineno__r   r   r   r   r!   __static_attributes__ r   r
   r   r      s    44I;
:r   r   c                   2    \ rS rSrS rS rS rS rS rSr	g)	PermWrapper   c                     Xl         g r   r   )r	   r   s     r
   r   PermWrapper.__init__   s    	r   c                 P    U R                   R                   SU R                  < S3$ )N())	__class__r%   r   r   s    r
   r   PermWrapper.__repr__   s$    ..--.a		}A>>r   c                 .    [        U R                  U5      $ r   )r   r   )r	   r   s     r
   r   PermWrapper.__getitem__   s    dii33r   c                     [        S5      e)NzPermWrapper is not iterable.r   r   s    r
   r   PermWrapper.__iter__"   s    677r   c                 ^    SU;  a  [        X   5      $ UR                  SS5      u  p!X   U   $ )z5
Lookup by "someapp" or "someapp.someperm" in perms.
r      )boolsplit)r	   r   r   s      r
   __contains__PermWrapper.__contains__&   s9     i(((sA6	y))r   r-   N)
r#   r$   r%   r&   r   r   r   r   r<   r'   r(   r   r
   r*   r*      s    ?48*r   r*   c                 t    [        U S5      (       a  U R                  nOSSKJn  U" 5       nU[	        U5      S.$ )z
Return context variables required by apps that use Django's authentication
system.

If there is no 'user' attribute in the request, use AnonymousUser (from
django.contrib.auth).
r       )AnonymousUser)r   perms)hasattrr   django.contrib.auth.modelsr@   r*   )requestr   r@   s      r
   authrE   1   s;     w||< T" r   N)r   r*   rE   r(   r   r
   <module>rF      s   
: :&* *2r   