educommon 3.9.7__py3-none-any.whl → 3.9.9__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/report/constructor/builders/excel/_base.py +9 -3
- educommon/version.conf +5 -5
- {educommon-3.9.7.dist-info → educommon-3.9.9.dist-info}/METADATA +1 -1
- {educommon-3.9.7.dist-info → educommon-3.9.9.dist-info}/RECORD +8 -8
- {educommon-3.9.7.dist-info → educommon-3.9.9.dist-info}/WHEEL +1 -1
- {educommon-3.9.7.dist-info → educommon-3.9.9.dist-info}/dependency_links.txt +0 -0
- {educommon-3.9.7.dist-info → educommon-3.9.9.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
|
"""Конфигурирование грида с результатами задачи."""
|
@@ -1042,9 +1042,15 @@ class DataLoader:
|
|
1042
1042
|
).exclude(
|
1043
1043
|
column_id__in=self._ignored_columns_ids
|
1044
1044
|
).exists():
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1045
|
+
# Является ли модель древовидной(mptt - Modified Preorder Tree Traversal)
|
1046
|
+
if hasattr(self._data_source.model, '_mptt_meta'):
|
1047
|
+
result = result.filter(
|
1048
|
+
self._data_filterer.get_orm_filters()
|
1049
|
+
).distinct(self._data_source.model._mptt_meta.tree_id_attr)
|
1050
|
+
else:
|
1051
|
+
result = result.filter(
|
1052
|
+
self._data_filterer.get_orm_filters()
|
1053
|
+
).distinct('pk')
|
1048
1054
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
1049
1055
|
# Добавление параметров включения вложенных учреждений.
|
1050
1056
|
|
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.9^0
|
8
|
+
VERSION = 3.9.9
|
9
|
+
REVISION = 2d3b71332d666fd04710cba539889684db787d3b
|
10
|
+
VERSION_DATE = 02.07.2024
|
11
|
+
REVISION_DATE = 02.07.2024
|
@@ -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=q0D3hPkCDlx0wZTT80WA8kCxLNImlP4GI6vr_-h8jfs,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
|
@@ -252,7 +252,7 @@ educommon/report/constructor/utils.py,sha256=lXfKGlqPhmlnSLg4O0FTxRd3kLQtx3WlLQ7
|
|
252
252
|
educommon/report/constructor/validators.py,sha256=E_VKNz0Z3YqJOJTjd7OdZXFMDnW8UUiVUIH9Jk6Irtw,524
|
253
253
|
educommon/report/constructor/builders/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
254
254
|
educommon/report/constructor/builders/excel/__init__.py,sha256=ZjiilnR4FRJm0DM06G3yKHBEDAPXs5JvuPO3JOg2FB8,104
|
255
|
-
educommon/report/constructor/builders/excel/_base.py,sha256=
|
255
|
+
educommon/report/constructor/builders/excel/_base.py,sha256=JHfPgyQjaOhuOI9MpZ4k2_K_tR8AzQTEoNCVnli8lbo,56169
|
256
256
|
educommon/report/constructor/builders/excel/_header.py,sha256=JUHHlBgkENPatp34csKrefteHsdbeCdJzqzSdTtof8M,4758
|
257
257
|
educommon/report/constructor/builders/excel/constants.py,sha256=SM5OEkd7CMrGhuCpMWIdZGy-R1NAUB06973QnECayR0,28
|
258
258
|
educommon/report/constructor/builders/excel/product.py,sha256=NsfjhUViZyi_XpDjiUJDwfgHVRlE98v40RMAa6mpAzk,6229
|
@@ -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.9.dist-info/METADATA,sha256=3pTRDtYLzRZF949mWKXop0DcwX8K0Qf3kFlj8X_0xeQ,1562
|
348
|
+
educommon-3.9.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
349
|
+
educommon-3.9.9.dist-info/dependency_links.txt,sha256=RNlr4t-BxZRm7e_IfVo1ikr5ln-7viimzLHvQMO1C_Q,43
|
350
|
+
educommon-3.9.9.dist-info/top_level.txt,sha256=z5fbW7bz_0V1foUm_FGcZ9_MTpW3N1dBN7-kEmMowl4,10
|
351
|
+
educommon-3.9.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|