3 @qhc8ã@snddlmZddlmZddlmZmZddlmZm Z m Z ddgZ Gdd„de eƒZ Gdd„de eeƒZ d S) é)Úcli)Ú exceptions)Ú RESTManagerÚ RESTObject)Ú DeleteMixinÚ ListMixinÚObjectDeleteMixinÚTodoÚ TodoManagerc@s*eZdZejdƒejejƒdd„ƒƒZdS)r cKs2d|jj|jf}|jjj|f|Ž}|j|ƒdS)aMark the todo as done. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabTodoError: If the server failed to perform the request z%s/%s/mark_as_doneN)ÚmanagerÚpathÚidÚgitlabÚ http_postZ _update_attrs)ÚselfÚkwargsr Z server_data©rúV/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/todos.pyÚ mark_as_done s zTodo.mark_as_doneN) Ú__name__Ú __module__Ú __qualname__rÚregister_custom_actionÚexcÚ on_http_errorÚGitlabTodoErrorrrrrrr sc@s6eZdZdZeZd Zejdƒe j e j ƒdd„ƒƒZ d S) r z/todosÚactionÚ author_idÚ project_idÚstateÚtypecKs|jjd|ŽdS)a]Mark all the todos as done. Args: **kwargs: Extra options to send to the server (e.g. sudo) Raises: GitlabAuthenticationError: If authentication is not correct GitlabTodoError: If the server failed to perform the request Returns: int: The number of todos maked done ú/todos/mark_as_doneN)r!)rr)rrrrrÚmark_all_as_done#szTodoManager.mark_all_as_doneN)rrrrr ) rrrÚ_pathr Z_obj_clsZ _list_filtersrrrrrr"rrrrr s N)rrrrZ gitlab.baserrZ gitlab.mixinsrrrÚ__all__r r rrrrÚs