educommon 3.9.6__py3-none-any.whl → 3.9.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- educommon/async_task/ui.py +13 -3
- educommon/version.conf +5 -5
- educommon/ws_log/models.py +4 -2
- {educommon-3.9.6.dist-info → educommon-3.9.8.dist-info}/METADATA +1 -1
- {educommon-3.9.6.dist-info → educommon-3.9.8.dist-info}/RECORD +8 -8
- {educommon-3.9.6.dist-info → educommon-3.9.8.dist-info}/WHEEL +0 -0
- {educommon-3.9.6.dist-info → educommon-3.9.8.dist-info}/dependency_links.txt +0 -0
- {educommon-3.9.6.dist-info → educommon-3.9.8.dist-info}/top_level.txt +0 -0
educommon/async_task/ui.py
CHANGED
@@ -84,14 +84,14 @@ class AsyncTaskResultViewWindow(BaseWindow):
|
|
84
84
|
super()._init_components()
|
85
85
|
|
86
86
|
self.top_region = ExtContainer(
|
87
|
-
region='north', layout='form', height=
|
87
|
+
region='north', layout='form', height=80, style={'padding': '5px'}
|
88
88
|
)
|
89
|
-
self.center_region = ExtContainer(region='center', layout='fit')
|
89
|
+
self.center_region = ExtContainer(region='center', layout='fit', style={'padding': '5px'})
|
90
90
|
self.bottom_region = ExtContainer(
|
91
91
|
region='south',
|
92
92
|
layout='form',
|
93
93
|
height=150,
|
94
|
-
style={'padding': '5px
|
94
|
+
style={'padding': '5px'}
|
95
95
|
)
|
96
96
|
self.task_type_fld = ExtStringField(
|
97
97
|
anchor='100%', label='Тип', read_only=True)
|
@@ -107,6 +107,13 @@ class AsyncTaskResultViewWindow(BaseWindow):
|
|
107
107
|
title='Результаты',
|
108
108
|
layout='fit',
|
109
109
|
)
|
110
|
+
self.close_btn = ExtButton(
|
111
|
+
text='Закрыть',
|
112
|
+
handler='function() {win.close()}'
|
113
|
+
)
|
114
|
+
|
115
|
+
# Кнопка "Отмена" не блокируется в режиме "только для чтения"
|
116
|
+
self._mro_exclude_list.append(self.close_btn)
|
110
117
|
|
111
118
|
def _do_layout(self):
|
112
119
|
"""Размещение элементов окна."""
|
@@ -123,6 +130,9 @@ class AsyncTaskResultViewWindow(BaseWindow):
|
|
123
130
|
self.progress_fld, self.state_fld, self.error_fld])
|
124
131
|
self.top_region.items.extend([
|
125
132
|
self.task_type_fld, self.description_fld])
|
133
|
+
self.buttons.extend([
|
134
|
+
self.close_btn,
|
135
|
+
])
|
126
136
|
|
127
137
|
def _configure_results_grid(self, data: dict):
|
128
138
|
"""Конфигурирование грида с результатами задачи."""
|
educommon/version.conf
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
# нормальной установки обновлений.
|
5
5
|
|
6
6
|
[version]
|
7
|
-
BRANCH = tags/3.9.
|
8
|
-
VERSION = 3.9.
|
9
|
-
REVISION =
|
10
|
-
VERSION_DATE =
|
11
|
-
REVISION_DATE =
|
7
|
+
BRANCH = tags/3.9.8^0
|
8
|
+
VERSION = 3.9.8
|
9
|
+
REVISION = f87b19df49230862f46efc66045849429797b4a4
|
10
|
+
VERSION_DATE = 04.06.2024
|
11
|
+
REVISION_DATE = 04.06.2024
|
educommon/ws_log/models.py
CHANGED
@@ -12,6 +12,7 @@ from django.db.models.expressions import (
|
|
12
12
|
Value,
|
13
13
|
When,
|
14
14
|
)
|
15
|
+
|
15
16
|
from m3.db import (
|
16
17
|
BaseEnumerate,
|
17
18
|
BaseObjectModel,
|
@@ -47,7 +48,7 @@ class ExtendedSmevLogManager(models.Manager):
|
|
47
48
|
"""
|
48
49
|
|
49
50
|
def get_queryset(self):
|
50
|
-
query = super(
|
51
|
+
query = super().get_queryset()
|
51
52
|
return query.annotate(
|
52
53
|
# Пустые и null значения приведем к значению по умолчанию "Успешно"
|
53
54
|
# для использования в фильтрации
|
@@ -56,7 +57,8 @@ class ExtendedSmevLogManager(models.Manager):
|
|
56
57
|
Q(result__isnull=True) | Q(result=''),
|
57
58
|
then=Value(SmevLog.RESULT_DEFAULT_VALUE)
|
58
59
|
),
|
59
|
-
default='result'
|
60
|
+
default='result',
|
61
|
+
output_field=models.CharField()
|
60
62
|
),
|
61
63
|
)
|
62
64
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
educommon/__init__.py,sha256=fvsBDL7g8HgOTd-JHOh7TSvMcnUauvGVgPuyA2Z9hUI,419
|
2
2
|
educommon/thread_data.py,sha256=n0XtdesP9H92O3rJ8K6fVnJLiHqyJEfh2xpuT36wzxs,61
|
3
|
-
educommon/version.conf,sha256=
|
3
|
+
educommon/version.conf,sha256=3CBF_KiYDEDO446tKaYHM4VfqJU8f-dh1u-IJ8mBDYg,450
|
4
4
|
educommon/about/README.rst,sha256=U48UW5jv-8qHyaV56atzzkNMvzHKXVcWSb_NR06PnMo,2685
|
5
5
|
educommon/about/__init__.py,sha256=H1W0IgW-qX9LCZ49GOJzHdmQGHhh-MA6U1xmNx7WnfM,132
|
6
6
|
educommon/about/apps.py,sha256=GrpJAOE2sF0ukWsqugP_WJS88DO4aL-T3kTLprrJrcA,259
|
@@ -22,7 +22,7 @@ educommon/async_task/helpers.py,sha256=HihuIHrszhVQAb-Cs6-l4npnlNAgctItGBJ-oIPQX
|
|
22
22
|
educommon/async_task/locker.py,sha256=TwVFhuEGsK0JHPXsWuqx7t2Op2mUKETY5EvHSeuKjc8,3844
|
23
23
|
educommon/async_task/models.py,sha256=pICrDFr4Vq6KWpa28NIALP45aLs0lqP7YC2p1IQDFSc,7430
|
24
24
|
educommon/async_task/tasks.py,sha256=A6tIuDyqMo9pPEezluyO8_Gs_XerMvWdFmluZ6VjFwI,11537
|
25
|
-
educommon/async_task/ui.py,sha256=
|
25
|
+
educommon/async_task/ui.py,sha256=LD7RwM4-6M_6ZO3Ulwy6_lK7rDPcddg-gB6EOV65494,5829
|
26
26
|
educommon/async_task/migrations/0001_initial.py,sha256=W0HfBmhatmQ7Dy4giGeqaZNtLHiEVAvJqx0AvHaxGZ0,3677
|
27
27
|
educommon/async_task/migrations/0002_task_type_and_status_data.py,sha256=rDGxKnbwu4OqfcodFwA_TR-kfDGRKJhivEBFKuurM30,3359
|
28
28
|
educommon/async_task/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -323,7 +323,7 @@ educommon/ws_log/__init__.py,sha256=9VzXIVt7xpcgQBW6QWWc8np2PJpJfrkPqi5OmVG_Jo4,
|
|
323
323
|
educommon/ws_log/actions.py,sha256=pnG1m5fkpcQq0fg06KC8cLp-TryxILEOELx8985SpFY,9153
|
324
324
|
educommon/ws_log/app_meta.py,sha256=JG1hyk9JQwxL-CY7Z3gDhoZA1M9DtD6Z0jcXCQ9vNt8,94
|
325
325
|
educommon/ws_log/base.py,sha256=PhihS8qDJ_y9GITlmJ2lXoHbTBzQmiaLO6ojXrt-nCk,7138
|
326
|
-
educommon/ws_log/models.py,sha256=
|
326
|
+
educommon/ws_log/models.py,sha256=bBknFBRyjJsDMQiLy5h7twJwOVAHbWTf92gSOZxLYyw,5656
|
327
327
|
educommon/ws_log/provider.py,sha256=qRFo6zfdtNY-PtH9OpECZ_ioSncQpV6IwzCP_XPaOaw,885
|
328
328
|
educommon/ws_log/report.py,sha256=uHotDZbRrDc_nLwn06kcvn9i5QLM_gpVMcWu1qTZdOA,3487
|
329
329
|
educommon/ws_log/ui.py,sha256=DlqrBj-hV4bbTaiLWmRvTXA7TQO_vOiYHhE-fEq7Yxk,4038
|
@@ -344,8 +344,8 @@ educommon/ws_log/smev/exceptions.py,sha256=lmy7o2T3dJkqgIhG07qyh5yPqO3qZAYABuT4J
|
|
344
344
|
educommon/ws_log/templates/report/smev_logs.xlsx,sha256=nnYgB0Z_ix8HoxsRICjsZfFRQBdra-5Gd8nWhCxTjYg,10439
|
345
345
|
educommon/ws_log/templates/ui-js/smev-logs-list-window.js,sha256=AGup3D8GTJSY9WdDPj0zBJeYQBFOmGgcbxPOJbKK-nY,513
|
346
346
|
educommon/ws_log/templates/ui-js/smev-logs-report-setting-window.js,sha256=nQ7QYK9frJcE7g7kIt6INg9TlEEJAPPayBJgRaoTePA,1103
|
347
|
-
educommon-3.9.
|
348
|
-
educommon-3.9.
|
349
|
-
educommon-3.9.
|
350
|
-
educommon-3.9.
|
351
|
-
educommon-3.9.
|
347
|
+
educommon-3.9.8.dist-info/METADATA,sha256=h-skqLGDNSTS3LMd7AX90T-N_R0NUJYwfs73kkoBCKE,1562
|
348
|
+
educommon-3.9.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
349
|
+
educommon-3.9.8.dist-info/dependency_links.txt,sha256=RNlr4t-BxZRm7e_IfVo1ikr5ln-7viimzLHvQMO1C_Q,43
|
350
|
+
educommon-3.9.8.dist-info/top_level.txt,sha256=z5fbW7bz_0V1foUm_FGcZ9_MTpW3N1dBN7-kEmMowl4,10
|
351
|
+
educommon-3.9.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|