tricc-oo 1.6.14__py3-none-any.whl → 1.6.15__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.
@@ -483,7 +483,7 @@ def set_additional_attributes(attribute_names, elm, node):
483
483
  # input expression can add a condition to either relevance (display) or calculate expression
484
484
  if attributename == "expression_inputs":
485
485
  attribute = [attribute]
486
- elif attributename == "instance":
486
+ elif attributename in ["priority", "instance"]:
487
487
  attribute = int(attribute)
488
488
  else:
489
489
  attribute
@@ -612,7 +612,11 @@ def inject_bridge_path(node, nodes):
612
612
  calc = TriccNodeDisplayBridge(**data)
613
613
  else:
614
614
  calc = TriccNodeBridge(**data)
615
-
615
+ if node:
616
+ priority = getattr(node, 'priority', None)
617
+ if priority:
618
+ calc.priority = priority
619
+
616
620
  for e in node.activity.edges:
617
621
  if e.target == node.id:
618
622
  if e.source in node.activity.nodes and len(node.activity.nodes[e.source].next_nodes):
@@ -405,6 +405,11 @@ def get_bridge_path(prev_nodes, node=None, edge_only=False):
405
405
  calc = TriccNodeDisplayBridge(**data)
406
406
  else:
407
407
  calc = TriccNodeBridge(**data)
408
+ if node:
409
+ priority = getattr(node, 'priority', None)
410
+ if priority:
411
+ calc.priority = priority
412
+
408
413
  return calc
409
414
 
410
415
 
@@ -1753,6 +1758,8 @@ def reorder_node_list(node_list, group, processed_nodes):
1753
1758
  return MAP_PRIORITIES[node.id]
1754
1759
  if isinstance(node, (TriccNodeActivityStart, TriccNodeMainStart)):
1755
1760
  return get_priority(node.activity)
1761
+ if isinstance(node, (TriccNodeSelectOption)):
1762
+ return get_priority(node.select)
1756
1763
 
1757
1764
  # Cache attributes to avoid repeated getattr calls
1758
1765
  priority = int(getattr(node, "priority", 0) or 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tricc-oo
3
- Version: 1.6.14
3
+ Version: 1.6.15
4
4
  Summary: Python library that converts CDSS L2 in L3
5
5
  Project-URL: Homepage, https://github.com/SwissTPH/tricc
6
6
  Project-URL: Issues, https://github.com/SwissTPH/tricc/issues
@@ -9,7 +9,7 @@ tricc_oo/converters/datadictionnary.py,sha256=JasqlLKiZzKdidsA1xc2SJ_Af1Xr6A3sKf
9
9
  tricc_oo/converters/drawio_type_map.py,sha256=Zp8J9iHNSJkIVrmRSM0_d4vA1X8wFPLKb8nCMPUMXKU,9114
10
10
  tricc_oo/converters/tricc_to_xls_form.py,sha256=39hwWgYNitGE-AuKtjUwNLz39tEpwc7nd9gT_gw5wjc,3842
11
11
  tricc_oo/converters/utils.py,sha256=JZrtrvvOfXwdkw49pKauzinOcauWwsy-CVcw36TjyLo,1684
12
- tricc_oo/converters/xml_to_tricc.py,sha256=ea8LNEPDe32q74AJCbEjxaLt_Po47oH45K_G8fo7TzE,40388
12
+ tricc_oo/converters/xml_to_tricc.py,sha256=V1lKsDbpFwftisOctdiU1qC9fRy07me7A5nb_yr8ud0,40536
13
13
  tricc_oo/converters/cql/cqlLexer.py,sha256=8HArbRphcrpnAG4uogJ2rHv4tc1WLzjN0B1uFeYILAc,49141
14
14
  tricc_oo/converters/cql/cqlListener.py,sha256=fA7-8DcS2Q69ckwjdg57-OfFHBxjTZFdoSKrtw7Hffc,57538
15
15
  tricc_oo/converters/cql/cqlParser.py,sha256=x3KdrwX9nwENSEJ5Ex7_l5NMnu3kWBO0uLdYu4moTq0,414745
@@ -41,11 +41,11 @@ tricc_oo/strategies/output/xlsform_cdss.py,sha256=X00Lt5MzV8TX14dR4dFI1MqllI5S1e
41
41
  tricc_oo/strategies/output/xlsform_cht.py,sha256=Zy8aggR1sTBP0b33RGbfUpk8pRppI1LGQEif4E1l49A,28523
42
42
  tricc_oo/strategies/output/xlsform_cht_hf.py,sha256=xm6SKirV3nMZvM2w54_zJcXAeAgAkq-EEqGEjnOWv6c,988
43
43
  tricc_oo/visitors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
- tricc_oo/visitors/tricc.py,sha256=QkVZpmDvSrMbMQeCxVn15zSk3iH-3-e-udMys96JkXE,110923
44
+ tricc_oo/visitors/tricc.py,sha256=3MFP0V2dOj2S1Kif_EudLHrokiALZYLdrnFICAhecQQ,111149
45
45
  tricc_oo/visitors/utils.py,sha256=j83aAq5s5atXi3OC0jc_uJd54a8XrHHmizeeEbWZQJg,421
46
46
  tricc_oo/visitors/xform_pd.py,sha256=ryAnI3V9x3eTmJ2LNsUZfvl0_yfCqo6oBgeSu-WPqaE,9613
47
- tricc_oo-1.6.14.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
48
- tricc_oo-1.6.14.dist-info/METADATA,sha256=_WkaLTsN1Yj8koCLVrOmdY9egk06du90gsMqRCcQ0Js,8600
49
- tricc_oo-1.6.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- tricc_oo-1.6.14.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
51
- tricc_oo-1.6.14.dist-info/RECORD,,
47
+ tricc_oo-1.6.15.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
48
+ tricc_oo-1.6.15.dist-info/METADATA,sha256=iVmzkCD26vre8c3sd4HGErVgAQrWbEzsHP8fwzLr1ds,8600
49
+ tricc_oo-1.6.15.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
50
+ tricc_oo-1.6.15.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
51
+ tricc_oo-1.6.15.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5