DLMS-SPODES-client 0.19.15__py3-none-any.whl → 0.19.17__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.
- DLMS_SPODES_client/task.py +10 -7
- {dlms_spodes_client-0.19.15.dist-info → dlms_spodes_client-0.19.17.dist-info}/METADATA +1 -1
- {dlms_spodes_client-0.19.15.dist-info → dlms_spodes_client-0.19.17.dist-info}/RECORD +6 -6
- {dlms_spodes_client-0.19.15.dist-info → dlms_spodes_client-0.19.17.dist-info}/WHEEL +0 -0
- {dlms_spodes_client-0.19.15.dist-info → dlms_spodes_client-0.19.17.dist-info}/entry_points.txt +0 -0
- {dlms_spodes_client-0.19.15.dist-info → dlms_spodes_client-0.19.17.dist-info}/top_level.txt +0 -0
DLMS_SPODES_client/task.py
CHANGED
|
@@ -534,9 +534,12 @@ class List[T: result.Result, U: Base[result.Result]](Subtasks[U], _List[T]):
|
|
|
534
534
|
self.__is_exchange = True
|
|
535
535
|
for t in self.tasks:
|
|
536
536
|
self.__current = t
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
537
|
+
if (
|
|
538
|
+
isinstance(res_one := await t.exchange(c), result.Error)
|
|
539
|
+
and not self.err_ignore
|
|
540
|
+
):
|
|
541
|
+
return res_one
|
|
542
|
+
res.append(res_one)
|
|
540
543
|
return res
|
|
541
544
|
|
|
542
545
|
|
|
@@ -1614,16 +1617,16 @@ class TestAll(OK):
|
|
|
1614
1617
|
|
|
1615
1618
|
|
|
1616
1619
|
@dataclass
|
|
1617
|
-
class ApplyTemplate(Base):
|
|
1620
|
+
class ApplyTemplate(SimpleCopy, Base):
|
|
1618
1621
|
template: collection.Template
|
|
1619
1622
|
msg: str = "apply template"
|
|
1620
1623
|
|
|
1621
1624
|
async def exchange(self, c: Client) -> result.Result:
|
|
1622
1625
|
# todo: search col
|
|
1623
1626
|
attr: cdt.CommonDataType
|
|
1624
|
-
res = result.
|
|
1627
|
+
res = result.StrictOk()
|
|
1625
1628
|
for col in self.template.collections:
|
|
1626
|
-
if col == c.
|
|
1629
|
+
if col == c.objects:
|
|
1627
1630
|
use_col = col
|
|
1628
1631
|
break
|
|
1629
1632
|
else:
|
|
@@ -1639,7 +1642,7 @@ class ApplyTemplate(Base):
|
|
|
1639
1642
|
value=attr.encoding
|
|
1640
1643
|
).exchange(c))
|
|
1641
1644
|
else:
|
|
1642
|
-
res.append_e(exc.EmptyObj(F"skip apply {self.template} {ln:
|
|
1645
|
+
res.append_e(exc.EmptyObj(F"skip apply {self.template} {ln}:{i}: no value"))
|
|
1643
1646
|
return res
|
|
1644
1647
|
|
|
1645
1648
|
|
|
@@ -6,7 +6,7 @@ DLMS_SPODES_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
6
6
|
DLMS_SPODES_client/services.py,sha256=xM_-h322V1bGBcw9cJh7XOSUMTL3_E-GX89-z3YwIYw,3909
|
|
7
7
|
DLMS_SPODES_client/session.py,sha256=nPzXujpmGSTFFvhyZRjgH_RLX1DS9moRddUEZuf-QEE,12760
|
|
8
8
|
DLMS_SPODES_client/settings.py,sha256=6mitGe9UYeEgL61sf933MJ-S5N-ReoxvXqiI3agBGYE,1623
|
|
9
|
-
DLMS_SPODES_client/task.py,sha256=
|
|
9
|
+
DLMS_SPODES_client/task.py,sha256=SG-KBkTbpTtbdnF3kt3lBtPqUQFTilYo6dHtfKYS0sY,76360
|
|
10
10
|
DLMS_SPODES_client/gurux_common/enums/TraceLevel.py,sha256=Ne0Rn3c9ACqQjmde_ksbiQxIUv6nXsPQRnhkGwIv3QI,521
|
|
11
11
|
DLMS_SPODES_client/gurux_common/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
DLMS_SPODES_client/gurux_dlms/AesGcmParameter.py,sha256=HJt0uvxtkqKEkvfiqXTMNsiayN15AgPJa9_iMSSFZsQ,1429
|
|
@@ -54,8 +54,8 @@ DLMS_SPODES_client/gurux_dlms/enums/Task.py,sha256=chuOL6-IMxBvABUZtoFcaYaQQB4GZ
|
|
|
54
54
|
DLMS_SPODES_client/gurux_dlms/enums/VdeStateError.py,sha256=qT87LMbIYEs3TYPIp3N-dR2Tcg9KhKyiELwhVl5U-tw,233
|
|
55
55
|
DLMS_SPODES_client/gurux_dlms/enums/__init__.py,sha256=F_sgGwNmmdpbKvP1klJQUNiLXxU2BtZ-LgEI9e6xP8g,1314
|
|
56
56
|
DLMS_SPODES_client/gurux_dlms/internal/_GXCommon.py,sha256=7D9EYcfiZxwbk8sfpHv7s2nYqrbmGf-Tbwv2T-gqmgk,53226
|
|
57
|
-
dlms_spodes_client-0.19.
|
|
58
|
-
dlms_spodes_client-0.19.
|
|
59
|
-
dlms_spodes_client-0.19.
|
|
60
|
-
dlms_spodes_client-0.19.
|
|
61
|
-
dlms_spodes_client-0.19.
|
|
57
|
+
dlms_spodes_client-0.19.17.dist-info/METADATA,sha256=RLzKk2GpHLFe1HTrRUqkJkOr3Nq5kUGFzJCTk-KvW-s,986
|
|
58
|
+
dlms_spodes_client-0.19.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
59
|
+
dlms_spodes_client-0.19.17.dist-info/entry_points.txt,sha256=Z6UTeQjjCf2k1Y3Bjs0s7yr-UYSWb-TvJMuG2K2MApw,70
|
|
60
|
+
dlms_spodes_client-0.19.17.dist-info/top_level.txt,sha256=rh_3Uig5bc6J_lKni01btol7dX_IgIJulNtGjGehmBE,19
|
|
61
|
+
dlms_spodes_client-0.19.17.dist-info/RECORD,,
|
|
File without changes
|
{dlms_spodes_client-0.19.15.dist-info → dlms_spodes_client-0.19.17.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|