
    jg]              	          d Z ddlZddlmZ ddlmZmZ ddlmZ  G d d      Z	 ee	d	        ed
ej                  d       edej                  d       edej                  d       edej                  d      gZ eedd      ri ej                   de       e edej                  d       edej                  d       edej                  d       edej                  d      gz  Zyy)zURLs defined for celery.

* ``/$task_id/done/``
    URL to :func:`~celery.views.is_successful`.
* ``/$task_id/status/``
    URL  to :func:`~celery.views.task_status`.
    N)settings)pathregister_converter   )viewsc                        e Zd ZdZdZd Zd Zy)TaskPatternConverterzhCustom path converter for task & group id's.

    They are slightly different from the built `uuid`
    z[\w\d\-\.]+c                     t        |      S )zConvert url to python value.)strselfvalues     U/var/www/html/Stanley/venv/lib/python3.12/site-packages/django_celery_results/urls.py	to_pythonzTaskPatternConverter.to_python   s    5z    c                     |S )z-Convert python value into url, just a string. r   s     r   to_urlzTaskPatternConverter.to_url   s    r   N)__name__
__module____qualname____doc__regexr   r   r   r   r   r	   r	      s    
 Er   r	   task_patternz!task/done/<task_pattern:task_id>/zcelery-is_task_successful)namez#task/status/<task_pattern:task_id>/zcelery-task_statusz#group/done/<task_pattern:group_id>/zcelery-is_group_successfulz%group/status/<task_pattern:group_id>/zcelery-group_status#DJANGO_CELERY_RESULTS_ID_FIRST_URLSTzNID first urls depricated, use noun first urls instead.Will be removed in 2022.z<task_pattern:task_id>/done/z<task_pattern:task_id>/status/z#<task_pattern:group_id>/group/done/z%<task_pattern:group_id>/group/status/)r   warningsdjango.confr   django.urlsr   r    r   r	   is_task_successfultask_statusis_group_successfulgroup_statusurlpatternsgetattrwarnDeprecationWarningr   r   r   <module>r)      s8      0  " ' 8 	+  (
 	-!
 	-!!)
 	/"!. 8:DAHMM	# *$$,	

 	,%	

 	1%%-	

 	3&	
! K Br   