U
    d]                  	   @   s   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 dZ	ee	d	 ed
ej
ddedejddedejddedejddgZeeddrede eedej
ddedejddedejddedejddg7 ZdS )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                   @   s$   e Zd ZdZdZdd Zdd ZdS )TaskPatternConverterzhCustom path converter for task & group id's.

    They are slightly different from the built `uuid`
    z[\w\d\-\.]+c                 C   s   t |S )zConvert url to python value.)strselfvalue r   >/tmp/pip-unpacked-wheel-oj8imec1/django_celery_results/urls.py	to_python   s    zTaskPatternConverter.to_pythonc                 C   s   |S )z-Convert python value into url, just a string.r   r	   r   r   r   to_url   s    zTaskPatternConverter.to_urlN)__name__
__module____qualname____doc__regexr   r   r   r   r   r   r      s   r   Z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_statusZ#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   warningsZdjango.confr   Zdjango.urlsr   r    r   r   Zis_task_successfulZtask_statusZis_group_successfulZgroup_statusZurlpatternsgetattrwarnDeprecationWarningr   r   r   r   <module>   sl   
