tricc-oo 1.5.15__py3-none-any.whl → 1.5.16__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.
@@ -774,15 +774,15 @@ def clean_link(link):
774
774
  return link_parts[1]
775
775
 
776
776
 
777
- def get_groups(diagram, nodes, parent_group):
777
+ def get_groups(diagram, nodes, activity):
778
778
  groups = {}
779
779
  list = get_tricc_type_list(diagram, "object", TriccNodeType.page)
780
780
  for elm in list:
781
- add_group(elm, diagram, nodes, groups, parent_group)
781
+ add_group(elm, diagram, nodes, groups, activity, activity)
782
782
  return groups
783
783
 
784
784
 
785
- def add_group(elm, diagram, nodes, groups, parent_group):
785
+ def add_group(elm, diagram, nodes, groups, parent_group, activity):
786
786
  external_id = elm.attrib.get("id")
787
787
  id = get_id(external_id, diagram.attrib.get("id"))
788
788
  if id not in groups:
@@ -792,6 +792,7 @@ def add_group(elm, diagram, nodes, groups, parent_group):
792
792
  id=id,
793
793
  external_id=external_id,
794
794
  group=parent_group,
795
+ activity=activity
795
796
  )
796
797
  # get elememt witn parent = id and tricc_type defiend
797
798
  list_child = get_tricc_type_list(
tricc_oo/models/base.py CHANGED
@@ -192,6 +192,7 @@ class TriccEdge(TriccBaseModel):
192
192
  class TriccGroup(TriccBaseModel):
193
193
  tricc_type: TriccNodeType = TriccNodeType.page
194
194
  group: Optional[TriccBaseModel] = None
195
+ activity: TriccBaseModel
195
196
  name: Optional[str] = None
196
197
  export_name:Optional[str] = None
197
198
  label: Optional[Union[str, Dict[str,str]]] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tricc-oo
3
- Version: 1.5.15
3
+ Version: 1.5.16
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,13 +9,13 @@ tricc_oo/converters/datadictionnary.py,sha256=WWKcTtKLfc4aduHcDBhr4JSfU2NqRMaslw
9
9
  tricc_oo/converters/drawio_type_map.py,sha256=Hr-QftrRZpVFI4SrYpxEZ6TBB9s1I3_0ieTpxlNwJXQ,7474
10
10
  tricc_oo/converters/tricc_to_xls_form.py,sha256=bJVd-FLrivrCxGI6mO2i0V7GVVuJZdaDuwcEf3gHNR8,2327
11
11
  tricc_oo/converters/utils.py,sha256=UyndDORsDbRV5-gYW-yInK5ztjtYdeCw6K-mrYr1Emk,1688
12
- tricc_oo/converters/xml_to_tricc.py,sha256=o9u5ixn8w3miWwbvgIZubcEFW_6_DfnIm-32g-YMS8w,37369
12
+ tricc_oo/converters/xml_to_tricc.py,sha256=rpqBX4wHYo3ZNEHynk-vlwritRN4FeQ7etmdShIefX4,37411
13
13
  tricc_oo/converters/cql/cqlLexer.py,sha256=t0-QvDv5kxCiBZJ9SfDumFOgnRSry_HJpakBZV224Ig,49126
14
14
  tricc_oo/converters/cql/cqlListener.py,sha256=ketvj7XvO7t047S6A3_gTPvp2MlYk1bojmkl10v5E6Y,57523
15
15
  tricc_oo/converters/cql/cqlParser.py,sha256=hIUdR907WX24P2Jlrxk-H0IT94n51yh_ZsCmwQhnFas,414730
16
16
  tricc_oo/converters/cql/cqlVisitor.py,sha256=SWSDIqVYBhucR4VgLn_EPNs7LV9yCqsOmzFZ0bmRSGc,33865
17
17
  tricc_oo/models/__init__.py,sha256=Rdk1fsNXHrbmXTQD1O7i0NC_A6os648Ap6CtWRliOg8,92
18
- tricc_oo/models/base.py,sha256=qCR26kdCip3a9cJRl-dmq3qiHdpxNHtFW3jGe0bwRIo,24637
18
+ tricc_oo/models/base.py,sha256=pOitJT-SHRo2Uqr7utx07PhvSJqHpyaldGrig56ZMIc,24666
19
19
  tricc_oo/models/calculate.py,sha256=60jSL8gbcTxqGYsZe1LoGZAdScIp6_suC88XlE0xg-c,7640
20
20
  tricc_oo/models/lang.py,sha256=SwKaoxyRhE7gH_ZlYyFXzGuTQ5RE19y47LWAA35zYxg,2338
21
21
  tricc_oo/models/ocl.py,sha256=ol35Gl1jCBp0Ven0yxOKzDIZkVL5Kx9uwaR_64pjxKI,8931
@@ -40,7 +40,7 @@ tricc_oo/visitors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
40
40
  tricc_oo/visitors/tricc.py,sha256=49YFqusHxzIZZd6MUuhytM_82Rz9ixwI2KQBUI8j0ug,100977
41
41
  tricc_oo/visitors/utils.py,sha256=Gol4JNozPEd30Q1l8IPIPhx5fqVyy9R81GofGVebgD8,484
42
42
  tricc_oo/visitors/xform_pd.py,sha256=jgjBLbfElVdi0NmClhw6NK6qNcIgWYm4KMXfVwiQwXM,9705
43
- tricc_oo-1.5.15.dist-info/METADATA,sha256=skfCRT8YnQ868dJXWHmlm9oqlpBMVsWcsSGZ-9lvM3E,7878
44
- tricc_oo-1.5.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
- tricc_oo-1.5.15.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
46
- tricc_oo-1.5.15.dist-info/RECORD,,
43
+ tricc_oo-1.5.16.dist-info/METADATA,sha256=2Td_UNCs7EQjCit5tfX7NHgN5GYzD_d3DB37jpqqU28,7878
44
+ tricc_oo-1.5.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
+ tricc_oo-1.5.16.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
46
+ tricc_oo-1.5.16.dist-info/RECORD,,