wipo-gbd-transformation 1.1.44__py3-none-any.whl → 1.1.45__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.

@@ -106,7 +106,6 @@ def st13(appnum, office, type='TRADEMARK', appdate=None, roffice=None, sanitize=
106
106
  appnum = ''.join(matches.groups())
107
107
 
108
108
  prefix = st13_identifier[source.lower()][type.lower()]
109
-
110
109
  if sanitize:
111
110
  # remove special characters
112
111
  special_chars = re.compile(r'\W')
@@ -1,11 +1,16 @@
1
1
  import gbdtransformation.brands.ipas.filters as ipas
2
+ from datetime import datetime
2
3
 
3
4
  ignore_namespace = [
4
5
  'http://www.wipo.int/standards/XMLSchema/trademarks',
5
6
  'http://www.wipo.int/standards/XMLSchema/wo-trademarks']
6
7
 
7
8
  def get_appdate(appdate, appnum):
8
- return appnum[2:6]
9
+ try:
10
+ datetime.strptime(appdate, "%Y-%m-%d")
11
+ return appdate
12
+ except:
13
+ return appnum[5:9]
9
14
 
10
15
  def translate_type(header):
11
16
  code = header.TransactionCode
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.44
3
+ Version: 1.1.45
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -4,7 +4,7 @@ gbdtransformation/execs.py,sha256=c36fHKA61mZ5bIiwvQMenuYHF2mJnqjNGMJtVLXKA5M,23
4
4
  gbdtransformation/parser.py,sha256=m6b1J0kJEaEDc0I8HKxzzN2nsQWKFfLlQqS3nT02kb4,7074
5
5
  gbdtransformation/renders.py,sha256=RmvQgugnG2ErvDxP4I9yovW67gEZNpOd59nrzEYfQPI,4555
6
6
  gbdtransformation/brands/__init__.py,sha256=abDdinNkilR-qYg4dhVxP_e1-ZixCzVuHGxbFt710TE,1605
7
- gbdtransformation/brands/filters.py,sha256=uF5U_gg7Xsk1wgDrFKzThnUO5xqQ2X5WFMufeJC6xN8,3675
7
+ gbdtransformation/brands/filters.py,sha256=2IbOBzLsfmgj8kfyEydmuB-VmpO4UMkvtnymVrxTIwc,3674
8
8
  gbdtransformation/brands/aetm/__init__.py,sha256=iRGjYvJCPaI3nnVc6ayO1g7j-fZ3yHrG1Wfb996UKMA,73
9
9
  gbdtransformation/brands/aetm/filters.py,sha256=mmhPwr6X-gC-jgc272e_9sxpNttfaUUORG7cDxgUO24,2490
10
10
  gbdtransformation/brands/aetm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8y20-XBA,3283
@@ -390,7 +390,7 @@ gbdtransformation/brands/uytm/filters.py,sha256=i7SBMVTF70OERVdsS3Dfv19S3-9kyxE-
390
390
  gbdtransformation/brands/uytm/schema,sha256=uMd1E_XRVQ_wHVrGq5fqFH6Fyg8cWx2DTQbVvH8tmmA,3730
391
391
  gbdtransformation/brands/uytm/template.yml,sha256=fLZVKwC0j6fAxv-kpngeSnGOZMiK-T_wWdxFmd4L7pc,5497
392
392
  gbdtransformation/brands/vntm/__init__.py,sha256=po50MWZ7H_x6jhT_C83-HvsjAE0J8IQpubzvXwTqmgI,225
393
- gbdtransformation/brands/vntm/filters.py,sha256=JZOgT2HN4_3db7zp9Iw0yLyfsABhZYZZCZhgbHVKNUU,2405
393
+ gbdtransformation/brands/vntm/filters.py,sha256=JgOjG03WnRD_N5tL5jP5mP-YGJozRECyypsm3TvlCJo,2530
394
394
  gbdtransformation/brands/vntm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
395
395
  gbdtransformation/brands/vntm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
396
396
  gbdtransformation/brands/vntm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -481,9 +481,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
481
481
  schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
482
482
  schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
483
483
  schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
484
- wipo_gbd_transformation-1.1.44.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
485
- wipo_gbd_transformation-1.1.44.dist-info/METADATA,sha256=toCSL9qVuv6lM7pYTIyZqLMIpt3UiDgH88wJw0qpwBk,485
486
- wipo_gbd_transformation-1.1.44.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
487
- wipo_gbd_transformation-1.1.44.dist-info/entry_points.txt,sha256=CiiRxivMelcgA7W_4rzY1fG-AGEarhpXQUlKYzKWsOI,165
488
- wipo_gbd_transformation-1.1.44.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
489
- wipo_gbd_transformation-1.1.44.dist-info/RECORD,,
484
+ wipo_gbd_transformation-1.1.45.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
485
+ wipo_gbd_transformation-1.1.45.dist-info/METADATA,sha256=O0XYNVarhjKyR14DktS9Zl841AVRoh6AxzigP0zDN10,485
486
+ wipo_gbd_transformation-1.1.45.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
487
+ wipo_gbd_transformation-1.1.45.dist-info/entry_points.txt,sha256=CiiRxivMelcgA7W_4rzY1fG-AGEarhpXQUlKYzKWsOI,165
488
+ wipo_gbd_transformation-1.1.45.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
489
+ wipo_gbd_transformation-1.1.45.dist-info/RECORD,,