tricc-oo 1.5.19__py3-none-any.whl → 1.5.21__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.
tricc_oo/models/base.py CHANGED
@@ -203,7 +203,11 @@ class TriccGroup(TriccBaseModel):
203
203
  super().__init__(**data)
204
204
  if self.name is None:
205
205
  self.name = generate_id(str(data))
206
-
206
+
207
+ def gen_name(self):
208
+ if self.name is None:
209
+ self.name = get_rand_name(self.id)
210
+
207
211
  def get_name(self):
208
212
  result = str(super().get_name())
209
213
  name = getattr(self, 'name', None)
@@ -301,6 +301,28 @@ class XLSFormCHTStrategy(XLSFormCDSSStrategy):
301
301
  "",
302
302
  "",
303
303
  ]
304
+
305
+ df_input.loc[len(df_input)] = [
306
+ "hidden",
307
+ "data_load",
308
+ *list(langs.get_trads("NO_LABEL", force_dict=True).values()),
309
+ *list(empty.values()),
310
+ *list(empty.values()),
311
+ "",
312
+ "hidden",
313
+ "",
314
+ *list(empty.values()),
315
+ "",
316
+ "",
317
+ "",
318
+ *list(empty.values()),
319
+ "",
320
+ "",
321
+ "",
322
+ "",
323
+ "",
324
+ "",
325
+ ]
304
326
 
305
327
  df_input.loc[len(df_input)] = [
306
328
  "end_group",
@@ -451,27 +473,7 @@ class XLSFormCHTStrategy(XLSFormCDSSStrategy):
451
473
  "", #'image'
452
474
  "", # choice filter
453
475
  ]
454
- df_input.loc[len(df_input)] = [
455
- "hidden",
456
- "data_load",
457
- *list(langs.get_trads("NO_LABEL", force_dict=True).values()),
458
- *list(empty.values()),
459
- *list(empty.values()),
460
- "",
461
- "hidden",
462
- "",
463
- *list(empty.values()),
464
- "",
465
- "",
466
- "",
467
- *list(empty.values()),
468
- "",
469
- "",
470
- "",
471
- "",
472
- "",
473
- "",
474
- ]
476
+
475
477
 
476
478
  for input in inputs:
477
479
  df_input.loc[len(df_input)] = get_input_calc_line(input)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tricc-oo
3
- Version: 1.5.19
3
+ Version: 1.5.21
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
@@ -15,7 +15,7 @@ tricc_oo/converters/cql/cqlListener.py,sha256=ketvj7XvO7t047S6A3_gTPvp2MlYk1bojm
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=gXjEUGD5yRCqtfATxM2DIBJ17HVJWzMifrBvacm_p54,26054
18
+ tricc_oo/models/base.py,sha256=jrOJuh4CufPXZo7qhRFUHpK4DXoPxKj8bxWvkOD7LXg,26172
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
@@ -34,13 +34,13 @@ tricc_oo/strategies/output/base_output_strategy.py,sha256=YVQTgisOsbm3h2xWwXKQQP
34
34
  tricc_oo/strategies/output/spice.py,sha256=s_COahyYCoc4Xv5TGh_AW9evDOW6GOex0Xwa_JWeLsI,11280
35
35
  tricc_oo/strategies/output/xls_form.py,sha256=nJqMVI9Y8LF1MxG9-0cJK8g1Ag8iKqFPkjYVsG_UJ2M,31289
36
36
  tricc_oo/strategies/output/xlsform_cdss.py,sha256=8ghPYH8K2DSzPY1jrJMQzrFmkvzu75jM0B1LpSS-y1E,9516
37
- tricc_oo/strategies/output/xlsform_cht.py,sha256=2GeQCmuoFo2CbKGuMIwr8Iq78edKMDb3AAsm6UVTHMU,24216
37
+ tricc_oo/strategies/output/xlsform_cht.py,sha256=GF6uQp7PncrcJU7voI5ErF-IuDdBCgzwBBq4hgxxxjY,24234
38
38
  tricc_oo/strategies/output/xlsform_cht_hf.py,sha256=VPx5_wLXLacJFTgVcwOJ7LVd77fmOrL_ZAycNZLxC6o,2281
39
39
  tricc_oo/visitors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  tricc_oo/visitors/tricc.py,sha256=e_6itYSgtc6EF2sOCKFvP3nri1NuELzRah_mBJdRVik,101851
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.19.dist-info/METADATA,sha256=L0rbZLJFADUCMrIESNtMxlOCNOop0IesDNSnLGJN3dY,7878
44
- tricc_oo-1.5.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
- tricc_oo-1.5.19.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
46
- tricc_oo-1.5.19.dist-info/RECORD,,
43
+ tricc_oo-1.5.21.dist-info/METADATA,sha256=pU0BM8husOGhMqf0_g_XAXs9rzgk5eaN0ryv-bVy5uI,7878
44
+ tricc_oo-1.5.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
+ tricc_oo-1.5.21.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
46
+ tricc_oo-1.5.21.dist-info/RECORD,,