tg-prepare 2.1.0b3__py3-none-any.whl → 2.1.0b5__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.

Potentially problematic release.


This version of tg-prepare might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tg_prepare
3
- Version: 2.1.0b3
3
+ Version: 2.1.0b5
4
4
  Summary: Simple UI to handle TextGrid imports visually.
5
5
  Author: Ralf Klammer, Moritz Wilhelm
6
6
  Author-email: ralf.klammer@tu-dresden.de, moritz.wilhelm@tu-dresden.de
@@ -8,7 +8,7 @@ License-File: LICENSE
8
8
  Requires-Dist: click
9
9
  Requires-Dist: flask
10
10
  Requires-Dist: flask_json
11
- Requires-Dist: tg_model==3.8.0.b2
11
+ Requires-Dist: tg_model==3.8.0.b3
12
12
  Requires-Dist: tgclients
13
13
  Requires-Dist: tgadmin
14
14
  Requires-Dist: nextcloud-api-wrapper
@@ -1,5 +1,5 @@
1
- tg_prepare-2.1.0b3.dist-info/licenses/LICENSE,sha256=deYu6g1OGKm0VUwhM4Octoh8qlzjsiHHxoI-KkCBVBE,11351
2
- tg_prepare-2.1.0b3.dist-info/projects/.secret_key,sha256=PF3sI74fctNP5J8NoHmvl6nRsvyTeGMU82UTY_E3re4,66
1
+ tg_prepare-2.1.0b5.dist-info/licenses/LICENSE,sha256=deYu6g1OGKm0VUwhM4Octoh8qlzjsiHHxoI-KkCBVBE,11351
2
+ tg_prepare-2.1.0b5.dist-info/projects/.secret_key,sha256=PF3sI74fctNP5J8NoHmvl6nRsvyTeGMU82UTY_E3re4,66
3
3
  tgp_backend/__init__.py,sha256=Hsy1huPlOgpNffJVJpxGZzUKdHU8X837K-cOW_DkEy0,373
4
4
  tgp_backend/auth.py,sha256=hUPd0rc01BTT003xpkdmhNc6o0JztbAdimyDb0B9oTQ,2293
5
5
  tgp_backend/cli.py,sha256=iw_gknn-_m_UFZZUKfkV9aJixG3sVcHIONybNtOG40I,551
@@ -7,7 +7,7 @@ tgp_backend/config.py,sha256=9rFr7bxZN4r1OOKaxs8eBYUnZ0_ccVHU6oqoEsNTKBE,922
7
7
  tgp_backend/directories.py,sha256=wNmwc2Uhd9ivZYIM9UkfCv2HkQY8pmDQk2y39wOgBQo,2366
8
8
  tgp_backend/interfaces.py,sha256=SO7mOdhkd1f7irUBrwFhp5aKx3UKkkUzU9QBYDl0Tvc,91
9
9
  tgp_backend/nextcloud.py,sha256=JNhyJfuR26o33r5QV37ClTALQm_fMQn451SMV5lixNc,5133
10
- tgp_backend/project.py,sha256=lRWEbDCZRA3a_iMx1OWin3JgF-Li_HdYcqWwkme87oA,12704
10
+ tgp_backend/project.py,sha256=4PcMrS6YPX0I5SiSruNRt4lId4wzI_qcHwKNABhTeQ8,12673
11
11
  tgp_backend/session_manager.py,sha256=pQGhnXtGPqwdw6xQhZItjGgurx9JBUsIW8mzfSKk_WM,1395
12
12
  tgp_backend/tgclient.py,sha256=QG2iFPrv2qLL4FRXoEfXzEMJriroiIaNL9rkreGtzuQ,2961
13
13
  tgp_backend/util.py,sha256=4lTaC3liik2ixRcx5wDQS4-FW3QpPhRdXQm32_64J_E,3648
@@ -42,7 +42,7 @@ tgp_ui/static/js/simpleXML.js,sha256=jEkZe3TuiHuEt6V7If_1EmqYIgTywssJ3OwOQzOFYNg
42
42
  tgp_ui/static/js/tabManager.js,sha256=spS-Hr-LylqpW0nQz7ontsPfX64b3whilr6038VMq18,3304
43
43
  tgp_ui/templates/file_tree.html,sha256=IKWp5MLUvnFF65cIUIxU4Jf5wi9Fg8koSXD96Mk328E,1640
44
44
  tgp_ui/templates/layout.html,sha256=ClI6xHMBy6auir72i3Sm6SCJI97XUXhpPrzJSgf_7wM,2727
45
- tgp_ui/templates/macros.html,sha256=3qetLd7wC__iAoWZ6g4--82Zd2t36XOZcwiLbi7DEAA,4463
45
+ tgp_ui/templates/macros.html,sha256=E1NSXt-Wyp8XesX4U_4Kv6atpLYcx4ggpgLF1WGXIPo,4451
46
46
  tgp_ui/templates/nxc_login.html,sha256=tDxqHYPZqsY2ZNnkn4a5bMOYiD8ybcNRpzSq7MvMWCo,1269
47
47
  tgp_ui/templates/nxc_tab.html,sha256=9HWCa7UZKxL0fZasT_g6uozI64L-497Y2LppPPTHF2M,517
48
48
  tgp_ui/templates/project_main.html,sha256=Vdvr9QDfpnc9EU38uTm0H4pT0pzLdi7DckL3d9DC_u4,1878
@@ -71,8 +71,8 @@ tgp_ui/templates/tabs/manage_collections.html,sha256=OHo7QTpFLlEXirPay4RQ2Jqt82y
71
71
  tgp_ui/templates/tabs/select_directories.html,sha256=JfP3Gj9mprcy-jpPxWS3eiLdI3XS3IAbgmYCFvi8vOQ,1989
72
72
  tgp_ui/templates/tabs/upload.html,sha256=tc-yv-T6hg3-gD3P3Xz7Xdb8qYyaQ9FVoyWDw144mm0,1785
73
73
  tgp_ui/templates/tabs/validate_metadata.html,sha256=USGG08KDMrc0rHtDEmma-DCbVEXbspMCIZhBqYfVpe4,12190
74
- tg_prepare-2.1.0b3.dist-info/METADATA,sha256=nhNKW2XIdVSm0qQz8Unc-Qu0F8PvMx4F4KjA-yKGvHw,529
75
- tg_prepare-2.1.0b3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
76
- tg_prepare-2.1.0b3.dist-info/entry_points.txt,sha256=mbsfiEA8_fQdrFUE_oabDi-Syw8jjli37Ms7tawDDhs,78
77
- tg_prepare-2.1.0b3.dist-info/top_level.txt,sha256=ueOyX_KdozreQJD_HRs6kAsvGNO4vfM9B_QqqhdyRPI,19
78
- tg_prepare-2.1.0b3.dist-info/RECORD,,
74
+ tg_prepare-2.1.0b5.dist-info/METADATA,sha256=z9bhEqjhqnjd9gL6Y7nevn_MIw-QTixvcVsQIQ2DtYA,529
75
+ tg_prepare-2.1.0b5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
76
+ tg_prepare-2.1.0b5.dist-info/entry_points.txt,sha256=mbsfiEA8_fQdrFUE_oabDi-Syw8jjli37Ms7tawDDhs,78
77
+ tg_prepare-2.1.0b5.dist-info/top_level.txt,sha256=ueOyX_KdozreQJD_HRs6kAsvGNO4vfM9B_QqqhdyRPI,19
78
+ tg_prepare-2.1.0b5.dist-info/RECORD,,
tgp_backend/project.py CHANGED
@@ -37,7 +37,6 @@ class Project(object):
37
37
  self._project_config = None
38
38
  self._collections = None
39
39
  self._nextcloud = None
40
- self.tg_project = TGProject(self.metadatapath)
41
40
 
42
41
  @property
43
42
  def name(self):
@@ -340,16 +339,17 @@ class TGProject(object):
340
339
  return False
341
340
 
342
341
  # step 1: create required metadata
343
- self.project.tg_project.render_project()
342
+ for c_name in self.collections:
343
+ collection = self.collections[c_name]
344
+ collection["modeler"].render_collection()
344
345
 
345
346
  # step 2: push project to textgrid server
346
347
  for collection_name in self.collections:
347
348
  collection = self.collections[collection_name]
348
- print(collection["modeler"].get_collection_path())
349
- # self.tg_client.put_aggregation(
350
- # self.tg_project_id,
351
- # collection["modeler"].get_collection_path(),
352
- # )
349
+ self.tg_client.put_aggregation(
350
+ self.tg_project_id,
351
+ collection["modeler"].get_collection_path(),
352
+ )
353
353
 
354
354
 
355
355
  class CollectionParser(object):
@@ -16,7 +16,6 @@
16
16
  </button>
17
17
  {% endif %}
18
18
  </div>
19
- {% endif %}
20
19
  {% endfor %}
21
20
  {% endmacro %}
22
21