
     h}                     $    d dl mZ d dlmZ d ZdS )    )urlresolvers)Promisec                     ddl m}m} t           d          r                                 S t           t                    r |            t           |j                  rt           fddD                       r S 	 t          j
         ||          S # t          j        $ r t                     r d vrd vr Y nw xY w S )	aQ  
    Return a URL appropriate for the arguments passed.
    The arguments could be:
        * A model: the model's `get_absolute_url()` function will be called.
        * A view name, possibly with arguments: `urlresolvers.reverse()` will
          be used to reverse-resolve the name.
        * A URL, which will be returned as-is.
    r   )six
force_textget_absolute_urlc              3   B   K   | ]}                     |          V  d S )N)
startswith).0pathtos     L/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/compat/shortcuts.py	<genexpr>zresolve_url.<locals>.<genexpr>   s/      ==tr}}T""======    )z./z../)argskwargs/.)compatr   r   hasattrr   
isinstancer   string_typesanyr   reverseNoReverseMatchcallable)r   r   r   r   r   s   `    r   resolve_urlr      s    '&&&&&&& r%&& %""$$$"g  Z^^"c&'' ====}===== 	I#BT&AAAA&   B<< 	b==S]] Is   B (CCN)r   r   django.utils.functionalr   r    r   r   <module>r       sD           + + + + + +% % % % %r   