-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#### Changelog: * Chore(deps): Upgrade backend dependencies. * Refactoring(backend): Add python stubs for compiled modules.
- Loading branch information
1 parent
b9b1631
commit 8514470
Showing
15 changed files
with
541 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,14 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: VST Utils 5.0.4\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-09-26 06:23+0000\n" | ||
"POT-Creation-Date: 2023-10-07 05:31+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.12.1\n" | ||
"Generated-By: Babel 2.13.0\n" | ||
|
||
#: ../../backend.rst:2 | ||
msgid "Backend API manual" | ||
|
@@ -534,7 +534,7 @@ msgstr "" | |
#: vstutils.api.filter_backends.DeepViewFilterBackend:25 | ||
#: vstutils.api.filter_backends.VSTFilterBackend:22 | ||
#: vstutils.api.filters.FkFilterHandler:15 | ||
#: vstutils.middleware.BaseMiddleware:37 | ||
#: vstutils.middleware.BaseMiddleware:38 | ||
#: vstutils.models.custom_model.FileModel:13 vstutils.tasks.TaskClass:4 | ||
#: vstutils.utils.BaseEnum:4 vstutils.utils.Lock:35 | ||
#: vstutils.utils.ObjectHandlers:31 vstutils.utils.SecurePickling:22 | ||
|
@@ -794,10 +794,9 @@ msgstr "" | |
"Поле, предоставляющее автодополнение на фронтенде. Использует указанный " | ||
"список объектов." | ||
|
||
#: of vstutils.api.actions.Action vstutils.api.base.CopyMixin.copy | ||
#: of vstutils.api.actions.Action | ||
#: vstutils.api.base.GenericViewSet.create_action_serializer | ||
#: vstutils.api.base.GenericViewSet.get_query_serialized_data | ||
#: vstutils.api.base.GenericViewSet.get_serializer | ||
#: vstutils.api.decorators.nested_view vstutils.api.decorators.subaction | ||
#: vstutils.api.endpoint.EndpointViewSet.get | ||
#: vstutils.api.endpoint.EndpointViewSet.get_client | ||
|
@@ -829,7 +828,6 @@ msgstr "" | |
#: vstutils.api.validators.UrlQueryStringValidator | ||
#: vstutils.api.validators.resize_image | ||
#: vstutils.api.validators.resize_image_from_to | ||
#: vstutils.middleware.BaseMiddleware | ||
#: vstutils.middleware.BaseMiddleware.get_response_handler | ||
#: vstutils.middleware.BaseMiddleware.handler | ||
#: vstutils.middleware.BaseMiddleware.request_handler | ||
|
@@ -914,8 +912,9 @@ msgid "" | |
"Simple string field. Value must always be a valid ASCII-string. The field" | ||
" is going to represent as Barcode (Code 128) in user interface." | ||
msgstr "" | ||
"Простое строковое поле. Значение всегда должно быть допустимой строкой ASCII. " | ||
"В пользовательском интерфейсе оно будет отображено как штрихкод (код 128)." | ||
"Простое строковое поле. Значение всегда должно быть допустимой строкой " | ||
"ASCII. В пользовательском интерфейсе оно будет отображено как штрихкод " | ||
"(код 128)." | ||
|
||
#: of vstutils.api.fields.Barcode128Field:4 vstutils.api.fields.QrCodeField:4 | ||
msgid "" | ||
|
@@ -2033,10 +2032,7 @@ msgstr "Необходимая высота" | |
msgid "Returns" | ||
msgstr "Возвращает" | ||
|
||
#: of vstutils.api.base.CopyMixin.copy | ||
#: vstutils.api.base.GenericViewSet.create_action_serializer | ||
#: vstutils.api.base.GenericViewSet.get_query_serialized_data | ||
#: vstutils.api.base.GenericViewSet.get_serializer | ||
#: of vstutils.api.base.GenericViewSet.create_action_serializer | ||
#: vstutils.api.endpoint.EndpointViewSet.get | ||
#: vstutils.api.endpoint.EndpointViewSet.get_client | ||
#: vstutils.api.endpoint.EndpointViewSet.get_serializer | ||
|
@@ -2169,12 +2165,6 @@ msgstr "Миксина для viewset'ов, добавляющая `copy` endpoi | |
msgid "Endpoint which copy instance with deps." | ||
msgstr "Endpoint, который копирует экземпляр с его зависимостями." | ||
|
||
#: of vstutils.api.base.CopyMixin.copy:5 | ||
#: vstutils.api.endpoint.EndpointViewSet.post:5 | ||
#: vstutils.api.endpoint.EndpointViewSet.put:5 | ||
msgid ":py:class:`vstutils.api.responses.BaseResponseClass`" | ||
msgstr ":py:class:`vstutils.api.responses.BaseResponseClass`" | ||
|
||
#: ../../docstring of vstutils.api.base.CopyMixin.copy_field_name:1 | ||
msgid "Name of field which will get a prefix." | ||
msgstr "Имя поля, которое получит префикс." | ||
|
@@ -2307,14 +2297,6 @@ msgstr "" | |
"флаг, который говорит о том нужно ли выбросить исключение при валидации в" | ||
" сериализаторе или нет." | ||
|
||
#: of vstutils.api.base.GenericViewSet.get_query_serialized_data:12 | ||
msgid "" | ||
":py:data:`typing.Union`\\[:py:class:`dict`, " | ||
":py:class:`collections.OrderedDict`]" | ||
msgstr "" | ||
":py:data:`typing.Union`\\[:py:class:`dict`, " | ||
":py:class:`collections.OrderedDict`]" | ||
|
||
#: of vstutils.api.base.GenericViewSet.get_serializer:1 | ||
#: vstutils.api.endpoint.EndpointViewSet.get_serializer:1 | ||
msgid "" | ||
|
@@ -2333,10 +2315,6 @@ msgstr "" | |
"Позволяет использовать :class:`django.http.StreamingHttpResponse` в " | ||
"качестве инициализации сериализатора." | ||
|
||
#: of vstutils.api.base.GenericViewSet.get_serializer:10 | ||
msgid ":py:class:`rest_framework.serializers.BaseSerializer`" | ||
msgstr ":py:class:`rest_framework.serializers.BaseSerializer`" | ||
|
||
#: of vstutils.api.base.GenericViewSet.get_serializer_class:1 | ||
msgid "Provides to setup serializer class for each action." | ||
msgstr "Позволяет задать класс сериализатора для каждого экшена." | ||
|
@@ -3309,6 +3287,11 @@ msgstr "" | |
msgid "Execute transactional bulk request" | ||
msgstr "Выполнить транзакционный bulk-запрос" | ||
|
||
#: of vstutils.api.endpoint.EndpointViewSet.post:5 | ||
#: vstutils.api.endpoint.EndpointViewSet.put:5 | ||
msgid ":py:class:`vstutils.api.responses.BaseResponseClass`" | ||
msgstr ":py:class:`vstutils.api.responses.BaseResponseClass`" | ||
|
||
#: of vstutils.api.endpoint.EndpointViewSet.put:1 | ||
msgid "Execute non transaction bulk request" | ||
msgstr "Выполнить нетранзакционный bulk-запрос" | ||
|
@@ -4623,3 +4606,14 @@ msgid "" | |
msgstr "" | ||
"Использует функцию :func:`django.utils.translation.get_language` для " | ||
"получения кода языка и пытается получить перевод из списка доступных." | ||
|
||
#~ msgid "" | ||
#~ ":py:data:`typing.Union`\\[:py:class:`dict`, " | ||
#~ ":py:class:`collections.OrderedDict`]" | ||
#~ msgstr "" | ||
#~ ":py:data:`typing.Union`\\[:py:class:`dict`, " | ||
#~ ":py:class:`collections.OrderedDict`]" | ||
|
||
#~ msgid ":py:class:`rest_framework.serializers.BaseSerializer`" | ||
#~ msgstr ":py:class:`rest_framework.serializers.BaseSerializer`" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# pylint: disable=django-not-available | ||
__version__: str = '5.8.1' | ||
__version__: str = '5.8.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import typing as _t | ||
from .pagination import SimpleCountedListPagination as SimpleCountedListPagination | ||
from .responses import BaseResponseClass as BaseResponseClass, HTTP_200_OK as HTTP_200_OK, HTTP_201_CREATED as HTTP_201_CREATED, HTTP_204_NO_CONTENT as HTTP_204_NO_CONTENT | ||
from .serializers import DataSerializer as DataSerializer, EmptySerializer as EmptySerializer | ||
from django.http.response import HttpResponseBase, FileResponse | ||
from rest_framework.request import Request | ||
from rest_framework.response import Response | ||
from rest_framework import serializers, viewsets as viewsets | ||
from rest_framework.decorators import ViewSetAction | ||
|
||
|
||
|
||
class SimpleActionObject(_t.Protocol): | ||
def setter(self, func: _t.Callable) -> _t.Union[ViewSetAction, 'SimpleActionObject']: ... | ||
def deleter(self, func: _t.Callable) -> _t.Union[ViewSetAction, 'SimpleActionObject']: ... | ||
|
||
class DummyAtomic: | ||
def __init__(self, *args, **kwargs) -> None: ... | ||
def __enter__(self): ... | ||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ... | ||
|
||
class Action: | ||
method_response_mapping: _t.Dict[_t.Text, _t.Type[BaseResponseClass]] | ||
detail: bool | ||
methods: _t.Optional[_t.List[_t.Text]] | ||
serializer_class: _t.Type[serializers.Serializer] | ||
result_serializer_class: _t.Optional[_t.Type[serializers.Serializer]] | ||
query_serializer: _t.Optional[_t.Type[serializers.Serializer]] | ||
multi: bool | ||
title: _t.Optional[_t.Text] | ||
icons: _t.Optional[_t.Union[_t.Text, _t.Iterable]] | ||
is_list: bool | ||
hidden: bool | ||
action_kwargs: _t.Dict[_t.Text, _t.Any] | ||
def __init__( | ||
self, | ||
detail: bool = ..., | ||
methods: _t.Optional[_t.List[_t.Text]] = ..., | ||
serializer_class: _t.Type[serializers.Serializer] = ..., | ||
result_serializer_class: _t.Optional[_t.Type[serializers.Serializer]] = ..., | ||
query_serializer: _t.Optional[_t.Type[serializers.Serializer]] = ..., | ||
multi: bool = ..., | ||
title: _t.Optional[_t.Text] = ..., | ||
icons: _t.Optional[_t.Union[_t.Text, _t.Iterable]] = ..., | ||
is_list: bool = ..., | ||
hidden: bool = ..., | ||
**kwargs | ||
) -> None: ... | ||
@property | ||
def is_page(self) -> bool: ... | ||
def wrap_function(self, func: _t.Callable) -> ViewSetAction: ... | ||
def __call__(self, method: _t.Callable) -> ViewSetAction: | ||
def action_method( | ||
view: viewsets.GenericViewSet, | ||
request: Request, | ||
*args, | ||
**kwargs, | ||
) -> _t.Union[Response, FileResponse]: | ||
... | ||
|
||
return self.wrap_function(action_method) | ||
|
||
class EmptyAction(Action): | ||
serializer_class: EmptySerializer | ||
|
||
def __init__( | ||
self, | ||
detail: bool = ..., | ||
methods: _t.Optional[_t.List[_t.Text]] = ..., | ||
result_serializer_class: _t.Optional[_t.Type[serializers.Serializer]] = ..., | ||
query_serializer: _t.Optional[_t.Type[serializers.Serializer]] = ..., | ||
multi: bool = ..., | ||
title: _t.Optional[_t.Text] = ..., | ||
icons: _t.Optional[_t.Union[_t.Text, _t.Iterable]] = ..., | ||
is_list: bool = ..., | ||
hidden: bool = ..., | ||
**kwargs | ||
) -> None: ... | ||
|
||
class SimpleAction(Action): | ||
atomic: bool | ||
extra_actions: _t.Dict[_t.Text, _t.Callable[..., HttpResponseBase]] | ||
def __init__(self, atomic: bool = False, *args, **kwargs) -> None: ... | ||
def _get_transaction_context(self, request, *args, **kwargs) -> _t.ContextManager: ... | ||
def __call__(self, getter: _t.Optional[_t.Callable] = ...) -> _t.Union['ViewSetAction', 'SimpleActionObject']: # type: ignore[override] | ||
action_method = super().__call__(getter) | ||
|
||
def setter(setter_method): | ||
return self(self.extra_actions.get('get')) | ||
|
||
def deleter(deleter_method): | ||
return self(self.extra_actions.get('get')) | ||
|
||
return action_method |
Oops, something went wrong.