tg-prepare 2.1.0b3__py3-none-any.whl → 2.1.0b4__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.0b4
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
@@ -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.0b4.dist-info/licenses/LICENSE,sha256=deYu6g1OGKm0VUwhM4Octoh8qlzjsiHHxoI-KkCBVBE,11351
2
+ tg_prepare-2.1.0b4.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
@@ -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.0b4.dist-info/METADATA,sha256=pxx3EuvSYCYvL2GmuDAVGd24FrdfG46oUznvZMGy1xQ,529
75
+ tg_prepare-2.1.0b4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
76
+ tg_prepare-2.1.0b4.dist-info/entry_points.txt,sha256=mbsfiEA8_fQdrFUE_oabDi-Syw8jjli37Ms7tawDDhs,78
77
+ tg_prepare-2.1.0b4.dist-info/top_level.txt,sha256=ueOyX_KdozreQJD_HRs6kAsvGNO4vfM9B_QqqhdyRPI,19
78
+ tg_prepare-2.1.0b4.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):