holado 0.2.6__py3-none-any.whl → 0.2.7__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.

Potentially problematic release.


This version of holado might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: holado
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: HolAdo framework
5
5
  Project-URL: Homepage, https://gitlab.com/holado_framework/python
6
6
  Project-URL: Issues, https://gitlab.com/holado_framework/python/-/issues
@@ -98,7 +98,7 @@ holado_core/common/inspectors/tools/inspect_builder.py,sha256=v7azgwciXHtO-o7gcg
98
98
  holado_core/common/inspectors/tools/inspect_context.py,sha256=lzhhO5HxG00c6uMPyIXEUz0FHA61VCNUZr_39ykZ8lQ,2700
99
99
  holado_core/common/inspectors/tools/inspect_parameters.py,sha256=2vXUpnZlP2cCYTvI9ddI6NGhONideoM1hBJ0vGdvPKo,7346
100
100
  holado_core/common/resource/persisted_data_manager.py,sha256=Zyxj99tKmL3cN_Bun44JNrlXOD4sjGPAhkHj2JcZPKc,5914
101
- holado_core/common/resource/persisted_method_to_call_manager.py,sha256=o5aXDK70pnr6WiWmyVN3EzhEllRiyO92ftlU2ukBgYo,6866
101
+ holado_core/common/resource/persisted_method_to_call_manager.py,sha256=M_1G8OKwOUn5ha18MOwXD3kXz2-1XOyUP0H9QYvg6FQ,7756
102
102
  holado_core/common/resource/resource_manager.py,sha256=3UmKaZGfCGJUJ9EvwHibuf6ILANshl6zVK6CkGDrtwo,7182
103
103
  holado_core/common/tables/__init__.py,sha256=i2-gExPOUa_AnmEPgZJQ2lAXeK02PLpPnjEqbsgj1Co,8
104
104
  holado_core/common/tables/enums.py,sha256=YtYTSI1m6KQ3XFzOSFPi5De6Jc-nkDMTbnmqfRfsiJ0,1395
@@ -127,7 +127,7 @@ holado_core/common/tables/converters/table_converter.py,sha256=lFt1NKFo5aMPMpKQi
127
127
  holado_core/common/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
128
128
  holado_core/common/tools/path_manager.py,sha256=dgdm8wAaVubh-krpquCXXeGUTtGqRKDpuEKmvhA9dKA,8899
129
129
  holado_core/common/tools/string_tools.py,sha256=j6ErNwpz19AXmbuvMk1HakX0EXfOkgu3s6bVohdz1g8,5365
130
- holado_core/common/tools/tools.py,sha256=G0q3bk9lOVRAHuOhs5PZT_5DEpRcmNhNmZuFqsMy6yw,9023
130
+ holado_core/common/tools/tools.py,sha256=N-MfdMPYQs2BVnX4QWgop5PflzanboHjOeKgoSmpB1o,9062
131
131
  holado_core/common/tools/comparators/comparator.py,sha256=K4LcXIRORHX5vkmDibI6P6Bu1L-6Xezb63ZzzOMKrWY,6812
132
132
  holado_core/common/tools/comparators/object_comparator.py,sha256=RPI319h_tij6z75UVbZII3gBggQolRFMNMD4cN6z37Y,1399
133
133
  holado_core/common/tools/converters/converter.py,sha256=8XBzapzxQRX-ciFdNtkhK75Q1ZhJUbfdaOhGCCfZmNk,3639
@@ -138,7 +138,7 @@ holado_core/tests/behave/steps/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCe
138
138
  holado_core/tests/behave/steps/common/common_steps.py,sha256=SAsi_UD9khKfXfS23IEQIPp4sTLG4EkDXrjc-9a9yDg,6295
139
139
  holado_core/tests/behave/steps/common/config_steps.py,sha256=fuV-83Aol9J92Ho9c-bt48G6ARbTM0vyfritQo-GpvY,1910
140
140
  holado_core/tests/behave/steps/common/resource_steps.py,sha256=FPQpN6I-vsxIkqTOSyB9i8P7oyg7Mf1XepHiPzmrlMk,3030
141
- holado_core/tests/behave/steps/common/tables_steps.py,sha256=bOAk9OrLEBp2JhlffnLmGcQelhWCBnwbbhL965-CZik,26380
141
+ holado_core/tests/behave/steps/common/tables_steps.py,sha256=Xr40QDcaJM9T1DKIKer1MxYR1ypqEcW-LDGVurE5b0o,26382
142
142
  holado_core/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
143
143
  holado_core/tools/abstracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
144
144
  holado_core/tools/abstracts/blocking_command_service.py,sha256=8EFNQZONFw1jeGAG7gJ59FmookKkjiC4IYkk2UTsbSs,2603
@@ -424,13 +424,13 @@ holado_value/common/tables/value_table_cell.py,sha256=3W2AoDxpvcqH4_Ta4LxeZeaCLa
424
424
  holado_value/common/tables/value_table_manager.py,sha256=1Q7V9RQyJrI5V7GfVcAn2MC_EZ494WeTgO7XvB7wtq8,3000
425
425
  holado_value/common/tables/value_table_row.py,sha256=8sX4qPyfoPCe1BvnwnlUyya2iKIr-K733erO9E9AnBc,2539
426
426
  holado_value/common/tables/value_table_with_header.py,sha256=6uHR05tUD_EmPz-Qv8ul3kmQ55VjFKIj2G6jGkjXZyU,1763
427
- holado_value/common/tables/comparators/table_2_value_table_cell_comparator.py,sha256=tCpamn0-95ggDbJ3NRBWP1Jv8kIU0ZzHQvZo0T0NHxo,10376
427
+ holado_value/common/tables/comparators/table_2_value_table_cell_comparator.py,sha256=gYYxEfey_xRp80VahqGF5N0RDIvT-NqCslTXTId_3Vw,10423
428
428
  holado_value/common/tables/comparators/table_2_value_table_comparator.py,sha256=rITxTgXami05plxk1qaCVqDcwZaKWoXpKAzur4ingTE,1807
429
429
  holado_value/common/tables/comparators/table_2_value_table_row_comparator.py,sha256=_VglWUQWspG1Fo2iAo41auCwWYR24q0TniFck99BF_E,1752
430
430
  holado_value/common/tables/comparators/table_2_value_table_with_header_comparator.py,sha256=VKwA7PbXnE-gFSKWlDCsJv0tkWVuNY-C4aWt2tyIybE,1911
431
431
  holado_value/common/tables/converters/value_table_converter.py,sha256=L0XIMxXv09fgcB6aJ8Wjg8FUw70PJ8A66ZBvBcA-P0o,9790
432
432
  holado_value/common/tools/unique_value_manager.py,sha256=UXKdDKWznp4auYKQeWB7zYEzfm_0GxAiGfyoFM5ZM3s,5223
433
- holado_value/common/tools/value.py,sha256=KQUzjSmGNpofevjSPzaBVDIgOGpztRoVuxLwQDTGL-4,9020
433
+ holado_value/common/tools/value.py,sha256=fWR_l12SEq47G3aMuRtsCz5ly_2HNdxIUluUokDaaE4,9022
434
434
  holado_value/common/tools/value_types.py,sha256=7nJp5D7xdoT9jMeeOxHIuPRykDyI9fXpve37ndK32gs,1801
435
435
  holado_value/tests/behave/steps/__init__.py,sha256=BHp8TYE_X4lWn4B8A51nXSYaJlczuiDVJLcKMy7p0Lw,1267
436
436
  holado_value/tests/behave/steps/private/__init__.py,sha256=BHp8TYE_X4lWn4B8A51nXSYaJlczuiDVJLcKMy7p0Lw,1267
@@ -530,7 +530,7 @@ test_holado/tools/django/api_rest/api_rest/api1/serializers.py,sha256=o_YxFr-tgC
530
530
  test_holado/tools/django/api_rest/api_rest/api1/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
531
531
  test_holado/tools/django/api_rest/api_rest/api1/views.py,sha256=kOt2xT6bxO47_z__5yYR9kcYIWWv4qYzpX0K8Tqonik,758
532
532
  test_holado/tools/django/api_rest/api_rest/api1/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
533
- holado-0.2.6.dist-info/METADATA,sha256=vlZiMQxP7ioBKPqSj3wjfyqn9Rys9oZ-D7wJBEIeBh4,5796
534
- holado-0.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
535
- holado-0.2.6.dist-info/licenses/LICENSE,sha256=IgGmNlcFHnbp7UWrLJqAFvs_HIgjJDTmjCNRircJLsk,1070
536
- holado-0.2.6.dist-info/RECORD,,
533
+ holado-0.2.7.dist-info/METADATA,sha256=SvuQzxFGmfj6dmBW6Gpwr5vilZuKxFwgHACPmgLKDrI,5796
534
+ holado-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
535
+ holado-0.2.7.dist-info/licenses/LICENSE,sha256=IgGmNlcFHnbp7UWrLJqAFvs_HIgjJDTmjCNRircJLsk,1070
536
+ holado-0.2.7.dist-info/RECORD,,
@@ -16,6 +16,7 @@ import json
16
16
  from holado_core.common.resource.persisted_data_manager import PersistedDataManager
17
17
  from holado_python.standard_library.typing import Typing
18
18
  from holado_core.common.exceptions.technical_exception import TechnicalException
19
+ from holado_core.common.tools.tools import Tools
19
20
 
20
21
  logger = logging.getLogger(__name__)
21
22
 
@@ -98,9 +99,21 @@ class PersistedMethodToCallManager(PersistedDataManager):
98
99
 
99
100
  # Call methods
100
101
  if methods_data:
101
- for meth_data in methods_data:
102
- self._call_function_or_method(meth_data)
103
- if delete_after_call:
102
+ for meth_index, meth_data in enumerate(methods_data):
103
+ do_delete = delete_after_call
104
+ try:
105
+ self._call_function_or_method(meth_data)
106
+ except Exception as exc:
107
+ msg_list = [f"Error while calling following method (use: '{use}' ; use index: {use_index} ; method index: {meth_index} ; delete after call: {delete_after_call}):"]
108
+ msg_list.append(Tools.represent_object(meth_data, 8))
109
+ msg_list.append(" Error:")
110
+ msg_list.append(Tools.represent_exception(exc, indent=8))
111
+ msg_list.append(" => Continue to process persisted methods")
112
+ msg_list.append(" WARNING: this method is removed from persisted methods to avoid recursive and blocking errors")
113
+ logger.error("\n".join(msg_list))
114
+ do_delete = True
115
+
116
+ if do_delete:
104
117
  self.__delete_function_or_method(meth_data)
105
118
 
106
119
  def __delete_function_or_method(self, function_or_method_data):
@@ -60,7 +60,7 @@ class Tools(object):
60
60
  return text
61
61
 
62
62
  @classmethod
63
- def represent_exception(cls, exc, tb=None):
63
+ def represent_exception(cls, exc, tb=None, indent=0):
64
64
  if sys.version_info >= (3,10):
65
65
  if tb is not None:
66
66
  list_format = traceback.format_exception(exc, value=exc, tb=tb)
@@ -68,7 +68,7 @@ class Tools(object):
68
68
  list_format = traceback.format_exception(exc)
69
69
  else:
70
70
  list_format = traceback.format_exception(type(exc), exc, exc.__traceback__)
71
- return "".join(list_format)
71
+ return Tools.indent_string(indent, "".join(list_format))
72
72
 
73
73
  @classmethod
74
74
  def represent_object(cls, obj, indent=0, *, do_indent_first_line=True, full_details=False, access_type=AccessType.Public):
@@ -328,7 +328,7 @@ def step_impl(context, var_name, table_varname, col_name):
328
328
  cell_rep_value = row_replace[tr_indexes["Replace Value"]] if "Replace Value" in tr_indexes else None
329
329
 
330
330
  if cell_cond_value is not None:
331
- cond = (cell_cond_value.value_type == ValueTypes.Symbol and cell_cond_value.content == 'DEFAULT'
331
+ cond = (cell_cond_value.content_type == ValueTypes.Symbol and cell_cond_value.content == 'DEFAULT'
332
332
  or cell_cond_value.value_type != ValueTypes.NotApplicable and cell.content == cell_cond_value.value)
333
333
  elif cell_cond_expr is not None:
334
334
  cond = tcell_comparator.equals(cell, cell_cond_expr, raise_exception = False)
@@ -107,7 +107,8 @@ class Table2ValueTable_CellComparator(TableCellComparator):
107
107
 
108
108
  cause = None
109
109
  try:
110
- value_type = cell_2.value_type
110
+ # value_type = cell_2.value_type
111
+ value_type = cell_2.content_type
111
112
  if value_type == ValueTypes.NotApplicable:
112
113
  res = True
113
114
  elif value_type == ValueTypes.Null:
@@ -49,7 +49,7 @@ class Value(object):
49
49
 
50
50
  self.__extract_value_information(original_value, value)
51
51
  if Tools.do_log(logger, logging.TRACE): # @UndefinedVariable
52
- logger.trace(f"New Value: original_value=[{self.__original_value}] ; type=[{self.value_type.name}] ; value=[{self.__value}] ; value_to_eval=[{self.__value_to_eval}]")
52
+ logger.trace(f"New Value: original_value=[{self.__original_value}] ; type=[{self.__value_type.name}] ; value=[{self.__value}] ; value_to_eval=[{self.__value_to_eval}]")
53
53
 
54
54
  def _verify_valid_compared_object(self, other, raise_exception=True):
55
55
  res = isinstance(other, Value)
File without changes