tricc-oo 1.4.5__tar.gz → 1.4.7__tar.gz
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.
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/PKG-INFO +1 -2
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/pyproject.toml +2 -1
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/output/xlsform_cht.py +1 -1
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/visitors/tricc.py +4 -2
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo.egg-info/PKG-INFO +2 -2
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo.egg-info/SOURCES.txt +1 -1
- /tricc_oo-1.4.5/LICENSE.md → /tricc_oo-1.4.7/LICENSE +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/README.md +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/setup.cfg +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tests/build.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tests/test_cql.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tests/to_ocl.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/codesystem_to_ocl.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/cql/cqlLexer.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/cql/cqlListener.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/cql/cqlParser.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/cql/cqlVisitor.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/cql_to_operation.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/datadictionnary.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/drawio_type_map.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/tricc_to_xls_form.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/utils.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/converters/xml_to_tricc.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/base.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/calculate.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/lang.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/ocl.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/ordered_set.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/models/tricc.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/parsers/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/parsers/xml.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/serializers/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/serializers/planuml.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/serializers/xls_form.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/input/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/input/base_input_strategy.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/input/drawio.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/output/base_output_strategy.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/output/spice.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/output/xls_form.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/output/xlsform_cdss.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/strategies/output/xlsform_cht_hf.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/visitors/__init__.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo/visitors/xform_pd.py +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo.egg-info/dependency_links.txt +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo.egg-info/requires.txt +0 -0
- {tricc_oo-1.4.5 → tricc_oo-1.4.7}/tricc_oo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tricc-oo
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.7
|
|
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,6 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Requires-Python: >=3.8
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
|
|
13
12
|
Requires-Dist: lxml
|
|
14
13
|
Requires-Dist: html2text
|
|
15
14
|
Requires-Dist: pydantic
|
|
@@ -4,9 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tricc-oo"
|
|
7
|
-
version = "1.4.
|
|
7
|
+
version = "1.4.7"
|
|
8
8
|
description = "Python library that converts CDSS L2 in L3"
|
|
9
9
|
readme = "README.md"
|
|
10
|
+
license-files = ["LICENSE"]
|
|
10
11
|
|
|
11
12
|
requires-python = ">=3.8"
|
|
12
13
|
classifiers = [
|
|
@@ -117,7 +117,7 @@ class XLSFormCHTStrategy(XLSFormCDSSStrategy):
|
|
|
117
117
|
# pause
|
|
118
118
|
ends = []
|
|
119
119
|
for p in self.project.pages.values():
|
|
120
|
-
p_ends = list(filter(lambda x: issubclass(x.__class__, TriccNodeEnd) and
|
|
120
|
+
p_ends = list(filter(lambda x: issubclass(x.__class__, TriccNodeEnd) and getattr(x, 'hint', None) is not None, p.nodes.values() ))
|
|
121
121
|
if p_ends:
|
|
122
122
|
ends += p_ends
|
|
123
123
|
if ends:
|
|
@@ -31,8 +31,10 @@ def get_max_version(dict):
|
|
|
31
31
|
return max_version
|
|
32
32
|
|
|
33
33
|
def get_versions(name, iterable):
|
|
34
|
-
return [n for n in iterable if (
|
|
34
|
+
return [n for n in iterable if version_filter(name)(n)]
|
|
35
35
|
|
|
36
|
+
def version_filter(name):
|
|
37
|
+
return lambda item: hasattr(item, 'name') and ( (name == 'tricc_end' and isinstance(item, TriccNodeEnd)) or item.name == name ) and not isinstance(item, TriccNodeSelectOption)
|
|
36
38
|
|
|
37
39
|
def get_last_version(name, processed_nodes, _list=None):
|
|
38
40
|
max_version = None
|
|
@@ -40,7 +42,7 @@ def get_last_version(name, processed_nodes, _list=None):
|
|
|
40
42
|
_list = _list[name].values() if name in _list else []
|
|
41
43
|
if _list is None:
|
|
42
44
|
if isinstance(processed_nodes, OrderedSet):
|
|
43
|
-
return processed_nodes.find_last(
|
|
45
|
+
return processed_nodes.find_last(version_filter(name))
|
|
44
46
|
else:
|
|
45
47
|
_list = get_versions(name, processed_nodes)
|
|
46
48
|
if _list:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tricc-oo
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.7
|
|
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 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Requires-Python: >=3.8
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
-
License-File: LICENSE
|
|
12
|
+
License-File: LICENSE
|
|
13
13
|
Requires-Dist: lxml
|
|
14
14
|
Requires-Dist: html2text
|
|
15
15
|
Requires-Dist: pydantic
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|