wipo-gbd-transformation 1.1.73__py3-none-any.whl → 1.1.75__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 wipo-gbd-transformation might be problematic. Click here for more details.

@@ -62,7 +62,19 @@ def translate_status(trademark):
62
62
  if trademark.ExpiryDate: return 'Expired'
63
63
  else: return 'Ended'
64
64
 
65
- raise Exception('status "%s" not mapped.' % status)
65
+ if status == "662":
66
+ # "Verificando o pagamento da concessão (encerrado o prazo extraordinário)"
67
+ return "Pending"
68
+
69
+ if status == "663":
70
+ # ?
71
+ return "Unknown"
72
+
73
+ if status == "687":
74
+ # "Designação de Madri aguardando processamento de DEATH CPN"
75
+ return "Pending"
76
+
77
+ #raise Exception('status "%s" not mapped.' % status)
66
78
  return ipas.translate_status(status)
67
79
 
68
80
  def parseStatus(status):
@@ -31,6 +31,7 @@ def translate_kind(kind):
31
31
 
32
32
  if kind == 'Individual': return ['Individual']
33
33
  if kind == 'Collective': return ['Collective']
34
+ if kind == 'Guarantee': return ['Collective']
34
35
 
35
36
  raise Exception('kind "%s" is not mapped.' % kind)
36
37
 
@@ -5,5 +5,5 @@ source = 'national'
5
5
  # PH/4/1981/00000115
6
6
  # PH/M/0001/01573483
7
7
  # A/M/0001/01421820 B/M/0001/01364251
8
- appnum_mask = [ 'PH/\\d/\\d*/(\\d*)', 'PH/M/\\d*/(\\d*)', 'A|B/M/\\d*/(\\d*)' ]
9
- regnum_mask = [ 'PH/\\d/\\d*/(\\d*)', 'PH/M/\\d*/(\\d*)', 'A|B/M/\\d*/(\\d*)' ]
8
+ appnum_mask = [ 'PH/\\d/\\d*/(\\d*)', 'PH/M/\\d*/(\\d*)', 'A/M/\\d*/(\\d*)', 'B/M/\\d*/(\\d*)' ]
9
+ regnum_mask = [ 'PH/\\d/\\d*/(\\d*)', 'PH/M/\\d*/(\\d*)', 'A/M/\\d*/(\\d*)', 'B/M/\\d*/(\\d*)' ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.73
3
+ Version: 1.1.75
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -45,7 +45,7 @@ gbdtransformation/brands/bntm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8
45
45
  gbdtransformation/brands/bntm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
46
46
  gbdtransformation/brands/bntm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  gbdtransformation/brands/brtm/__init__.py,sha256=4i_g7tbu8MmPJccRZCkqJES_bzwGUY59SxTlZT_e3Xs,37
48
- gbdtransformation/brands/brtm/filters.py,sha256=uoBeiqYeSiekPjOa405dVCUdMT06IaWqtrCKbXxJ-ug,5569
48
+ gbdtransformation/brands/brtm/filters.py,sha256=_WbKSUYBmCghrP_Fkb4OjdczWkdRuxP2pHh3JCzeNEo,5890
49
49
  gbdtransformation/brands/brtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
50
50
  gbdtransformation/brands/brtm/template.yml,sha256=U3dMrcxS-meJthPQow_R1MAVH1DYdJ4AyJSAR6s9LJQ,952
51
51
  gbdtransformation/brands/brtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -149,7 +149,7 @@ gbdtransformation/brands/gstm/filters.py,sha256=QGOXTX5HsoOoxfY9a31adtujzOS7C0KQ
149
149
  gbdtransformation/brands/gstm/template.gs.yml,sha256=tQOXTIpmurgytddfqyWvKuCx-7K6ZxALMGXLn0mjg0s,1711
150
150
  gbdtransformation/brands/gstm/template.yml,sha256=INQBe908BttDal83tMEXkpAOTasJ0vo5Myl_kFuatR8,1000
151
151
  gbdtransformation/brands/hrtm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
152
- gbdtransformation/brands/hrtm/filters.py,sha256=7y9zyNqbM6Nj_2EXxs9RG4g-bGzUMZQhwnnLLre4M6o,4065
152
+ gbdtransformation/brands/hrtm/filters.py,sha256=9aoEjSxpD8d8S3UG9F9vfk9yMOX5q6HdnVwBWwsZzw0,4115
153
153
  gbdtransformation/brands/hrtm/schema,sha256=7jQ-PC0VTx5NZ79Qf8xAZEX8sqFSUtjPwsvVYV8XZAs,1376
154
154
  gbdtransformation/brands/hrtm/template.yml,sha256=9vOPTN4h6ytSoUhQ0m40bRfFbBqUXi8ZbcEU4Dw9k-c,9185
155
155
  gbdtransformation/brands/idtm/__init__.py,sha256=MBVFGkMlqAi-s2ur7pCLYe2uxtjIxx9n9wo2bpESvxU,311
@@ -319,7 +319,7 @@ gbdtransformation/brands/pgtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRF
319
319
  gbdtransformation/brands/pgtm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
320
320
  gbdtransformation/brands/pgtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
321
321
  gbdtransformation/brands/pgtm/tests/pgtm.xml,sha256=fAzAz2VtqOFV_2QImDbNxDvuTr-Ue3e5tGx8h-Lnnvg,6533
322
- gbdtransformation/brands/phtm/__init__.py,sha256=G01gOiHu64Hww_g55AgKgLY--4fbxV-p8cqEAZ7lltA,329
322
+ gbdtransformation/brands/phtm/__init__.py,sha256=ubPa3l6csI9kH0SD3cc7vI2eV7oaH_lpD3ZgbZP50Oc,363
323
323
  gbdtransformation/brands/phtm/filters.py,sha256=NmNBnGVzJroC6h9VmZwZhLnvW61Hre6gRIulgaJXWHE,6324
324
324
  gbdtransformation/brands/phtm/schema,sha256=Nb5tI5MUrzn19c8GpLFuJhpiLn0Fa9XPza10eNHeesI,2877
325
325
  gbdtransformation/brands/phtm/schema.classic,sha256=3JOKHUfK0jSo0NBlDmeGFAKqfYdMJOrIPBIoNUMrVFI,808
@@ -584,9 +584,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
584
584
  schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
585
585
  schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
586
586
  schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
587
- wipo_gbd_transformation-1.1.73.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
588
- wipo_gbd_transformation-1.1.73.dist-info/METADATA,sha256=8ZwXeabJTv1l1E1vnAMKQS0_ErdxAwszT4g0geTgNJo,577
589
- wipo_gbd_transformation-1.1.73.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
590
- wipo_gbd_transformation-1.1.73.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
591
- wipo_gbd_transformation-1.1.73.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
592
- wipo_gbd_transformation-1.1.73.dist-info/RECORD,,
587
+ wipo_gbd_transformation-1.1.75.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
588
+ wipo_gbd_transformation-1.1.75.dist-info/METADATA,sha256=VeeKM8Bu-kxQaq8SzYx_CJXGheafEd0rWGqllC_5-3I,577
589
+ wipo_gbd_transformation-1.1.75.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
590
+ wipo_gbd_transformation-1.1.75.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
591
+ wipo_gbd_transformation-1.1.75.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
592
+ wipo_gbd_transformation-1.1.75.dist-info/RECORD,,