wipo-gbd-transformation 1.1.60__py3-none-any.whl → 1.1.61__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.
- gbdtransformation/brands/emtm/filters.py +4 -2
- gbdtransformation/brands/emtm/template.yml +8 -34
- gbdtransformation/brands/xxxx/template.yml +1 -1
- gbdtransformation/common/filters.py +8 -1
- gbdtransformation/commons/filters.py +1 -0
- {wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/METADATA +1 -1
- {wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/RECORD +11 -10
- {wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/LICENSE.md +0 -0
- {wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/WHEEL +0 -0
- {wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/entry_points.txt +0 -0
- {wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/top_level.txt +0 -0
|
@@ -70,7 +70,8 @@ def translate_feature(feature):
|
|
|
70
70
|
if feature.capitalize() in std_features:
|
|
71
71
|
return feature.capitalize()
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
return 'Unknown'
|
|
74
|
+
#raise Exception('Feature "%s" unmapped' % feature)
|
|
74
75
|
|
|
75
76
|
|
|
76
77
|
def get_registration_nb(trademark, tmstatus):
|
|
@@ -106,4 +107,5 @@ def translate_status(trademark):
|
|
|
106
107
|
if status == 'Registered': return 'Registered'
|
|
107
108
|
if status == 'Registration expired': return 'Expired'
|
|
108
109
|
|
|
109
|
-
|
|
110
|
+
return 'Unknown'
|
|
111
|
+
#raise Exception('Status "%s" not mapped.' % status)
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
{% set _space = " " %}
|
|
9
9
|
{% set status = TradeMark | translate_status %}
|
|
10
|
+
{% set st13 = TradeMark.ApplicationNumber | st13('EM') %}
|
|
10
11
|
|
|
11
12
|
st13: {{ TradeMark.ApplicationNumber | st13('EM') }}
|
|
12
13
|
gbdStatus: {{ status }}
|
|
@@ -108,49 +109,22 @@ appeals:
|
|
|
108
109
|
date: {{ apeal.AppealEventDate }}
|
|
109
110
|
{% endcall %}
|
|
110
111
|
applicants:
|
|
111
|
-
{% call(applicant) match('ApplicantDetails.
|
|
112
|
+
{% call(applicant) match('ApplicantDetails.ApplicantKey', TradeMark) %}
|
|
112
113
|
{% if not applicant._operationCode == 'Delete' %}
|
|
113
|
-
-
|
|
114
|
-
kind: {{ applicant.ApplicantLegalEntity }}
|
|
115
|
-
fullName:
|
|
116
|
-
- languageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
117
|
-
text: {{ applicant.ApplicantAddressBook.FormattedNameAddress.Name.FormattedName.OrganizationName }}
|
|
118
|
-
fullAddress:
|
|
119
|
-
- languageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
120
|
-
text: {{ applicant.ApplicantAddressBook.FormattedNameAddress.Address.FormattedAddress | format_address }}
|
|
121
|
-
contact:
|
|
122
|
-
phone: {{ applicant.ApplicantAddressBook.ContactInformationDetails.Phone }}
|
|
123
|
-
fax: {{ applicant.ApplicantAddressBook.ContactInformationDetails.Fax }}
|
|
124
|
-
email: {{ applicant.ApplicantAddressBook.ContactInformationDetails.Email }}
|
|
125
|
-
url: {{ applicant.ApplicantAddressBook.ContactInformationDetails.URL }}
|
|
126
|
-
countryCode: {{ applicant.ApplicantAddressBook.FormattedNameAddress.Address.AddressCountryCode }}
|
|
114
|
+
- {{ applicant.Identifier | get_entity_from_db(TradeMark.RegistrationOfficeCode, 'APP', st13) | field_name}}
|
|
127
115
|
{% endif %}
|
|
128
116
|
{% endcall %}
|
|
129
117
|
|
|
130
118
|
representatives:
|
|
131
|
-
{% call(
|
|
119
|
+
{% call(rep) match('RepresentativeDetails.RepresentativeKey', TradeMark) %}
|
|
132
120
|
{% if not representative._operationCode == 'Delete' %}
|
|
133
|
-
-
|
|
134
|
-
kind: {{representative.RepresentativeLegalEntity | append(' (') | append(representative.RepresentativeTypeCode) | append(')')}}
|
|
135
|
-
{% call(fna) match('RepresentativeAddressBook.FormattedNameAddress', representative)%}
|
|
136
|
-
fullName:
|
|
137
|
-
- languageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
138
|
-
text: {{ fna.Name.FormattedName | format_name }}
|
|
139
|
-
fullAddress:
|
|
140
|
-
- languageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
141
|
-
text: {{ fna.Address.FormattedAddress | format_address }}
|
|
142
|
-
contact:
|
|
143
|
-
phone: {{ representative.RepresentativeAddressBook.ContactInformationDetails.Phone }}
|
|
144
|
-
fax: {{ representative.RepresentativeAddressBook.ContactInformationDetails.Fax }}
|
|
145
|
-
email: {{ representative.RepresentativeAddressBook.ContactInformationDetails.Email }}
|
|
146
|
-
url: {{ representative.RepresentativeAddressBook.ContactInformationDetails.URL }}
|
|
147
|
-
countryCode: {{ fna.Address.AddressCountryCode }}
|
|
148
|
-
{% endcall %}
|
|
121
|
+
- {{ rep.Identifier | get_entity_from_db(TradeMark.RegistrationOfficeCode, 'REP', st13) | field_name}}
|
|
149
122
|
{% endif %}
|
|
150
123
|
{% endcall %}
|
|
124
|
+
|
|
151
125
|
correspondence:
|
|
152
|
-
{% call(rep) match('
|
|
153
|
-
{{ rep.CorrespondenceAddressIdentifier}}
|
|
126
|
+
{% call(rep) match('CorrespondenceAddress', TradeMark) %}
|
|
127
|
+
{{ rep.CorrespondenceAddressIdentifier | get_entity_from_db('EM', rep.CorrespondenceAddressParty, st13) | field_name}}
|
|
154
128
|
{% endcall %}
|
|
155
129
|
|
|
156
130
|
{% endif %}
|
|
@@ -73,7 +73,7 @@ terminationDate:
|
|
|
73
73
|
# status as is in the document
|
|
74
74
|
officeStatus:
|
|
75
75
|
# status as translated to gbdFormat
|
|
76
|
-
gbdStatus: # (Ended|Expired|Pending|Registered|Unknown)
|
|
76
|
+
gbdStatus: # (Ended|Expired|Pending|Registered|Unknown|Delete)
|
|
77
77
|
# can also be the date of the last event in markevents if given
|
|
78
78
|
statusDate:
|
|
79
79
|
|
|
@@ -28,8 +28,15 @@ def load_collection_package(type, collection):
|
|
|
28
28
|
def get_entity_from_db(value, collection, e_type, st13):
|
|
29
29
|
e_type = e_type[0:3].upper()
|
|
30
30
|
key = "%s.%s.%s" % (collection.lower(), e_type, value)
|
|
31
|
+
#dynamodb = boto3.resource('dynamodb',
|
|
32
|
+
# endpoint_url=os.environ.get('DYNAMO_DB'))
|
|
31
33
|
dynamodb = boto3.resource('dynamodb',
|
|
32
|
-
endpoint_url=os.environ.get('
|
|
34
|
+
endpoint_url=os.environ.get('DYDB_URL'))
|
|
35
|
+
#dynamodb = boto3.resource('dynamodb',
|
|
36
|
+
# region_name="eu-west-1",
|
|
37
|
+
# aws_access_key_id='anything',
|
|
38
|
+
# aws_secret_access_key='anything',
|
|
39
|
+
# endpoint_url="http://localhost:8001")
|
|
33
40
|
table = dynamodb.Table('gbd_pypers_entity')
|
|
34
41
|
response = table.get_item(Key={
|
|
35
42
|
'entity_id': key}).get('Item', {})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ignore_namespace = ['http://www.euipo.europa.eu/EUTM/EUTM_Download']
|
{wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/RECORD
RENAMED
|
@@ -110,9 +110,9 @@ gbdtransformation/brands/egtm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8
|
|
|
110
110
|
gbdtransformation/brands/egtm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
111
111
|
gbdtransformation/brands/egtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
112
112
|
gbdtransformation/brands/emtm/__init__.py,sha256=9J9MpkcIR-7PWVjbzvT-ey9F400wxdlRAQF5ZiX8FX8,91
|
|
113
|
-
gbdtransformation/brands/emtm/filters.py,sha256=
|
|
113
|
+
gbdtransformation/brands/emtm/filters.py,sha256=vUAFaOGOx2l7VhIf1DcyyNfoGpJLudBP4wYm8ukCMCM,3294
|
|
114
114
|
gbdtransformation/brands/emtm/schema,sha256=CCZ2HtmgidPqBs9byleAC6ksQ6jFgclmVewH3Vnex8w,9643
|
|
115
|
-
gbdtransformation/brands/emtm/template.yml,sha256=
|
|
115
|
+
gbdtransformation/brands/emtm/template.yml,sha256=L0pDlLO_xwksy_Bb_BiNSgorFAAysaPcojmJJnu4UZw,5561
|
|
116
116
|
gbdtransformation/brands/estm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
117
117
|
gbdtransformation/brands/estm/filters.py,sha256=GzhXr2dnPmZ4l71q0a3ulNTJgdpLQI6qcQcNEK8E5Co,3553
|
|
118
118
|
gbdtransformation/brands/estm/schema,sha256=y7ZeQPuHez-DbBs1wnQjkyPvQ3hQ2uX5eNdrimCnFh4,3334
|
|
@@ -452,7 +452,7 @@ gbdtransformation/brands/wstm/tests/test.xml.gz,sha256=UKm7LTvKaETUtHMKurFGqkqXO
|
|
|
452
452
|
gbdtransformation/brands/xxxx/__init__.py,sha256=fricc3VHm4BwGRFKIIqB0t-NtP3tTVRrEYee_gWpiFo,172
|
|
453
453
|
gbdtransformation/brands/xxxx/filters.py,sha256=YCaQ6yH2LINwCQvbPHDhnORQyWglbswLlSOY6ur3KXQ,1874
|
|
454
454
|
gbdtransformation/brands/xxxx/schema,sha256=g_oWkd7k2e5fAQR1BdNkPSsIgP3dkTyc7esWo_UOHQA,163
|
|
455
|
-
gbdtransformation/brands/xxxx/template.yml,sha256=
|
|
455
|
+
gbdtransformation/brands/xxxx/template.yml,sha256=yQJOtXcpbpsJRkVY2HBvY9ih39YFN0hSfgYqsGDFD6Y,4672
|
|
456
456
|
gbdtransformation/brands/zmtm/__init__.py,sha256=Mtsi_-CaLQirHkhnletNhJ4li-pZlzEZMcKjv6mEk50,256
|
|
457
457
|
gbdtransformation/brands/zmtm/filters.py,sha256=FkGfv3nPiYDUy97O7bDzPp824qoDsqX-oh2Ox01NTpA,2344
|
|
458
458
|
gbdtransformation/brands/zmtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -464,7 +464,7 @@ gbdtransformation/brands/zwtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRF
|
|
|
464
464
|
gbdtransformation/brands/zwtm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
465
465
|
gbdtransformation/brands/zwtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
466
466
|
gbdtransformation/common/__init__.py,sha256=D8Pro2OHR868UAos_APlN1LhUPWMyIDXmPxP81n3HTw,12644
|
|
467
|
-
gbdtransformation/common/filters.py,sha256=
|
|
467
|
+
gbdtransformation/common/filters.py,sha256=IRaUD7dCP-29VYrZ0Ea_YF2gesdKrLRDjPoHlXUb-PA,10845
|
|
468
468
|
gbdtransformation/common/navigation.tmpl,sha256=EZtsUnfh8B1V2WzHZjH3ZRZ9c9WpCVpWYsxLhGg9-fw,346
|
|
469
469
|
gbdtransformation/common/jpap/__init__.py,sha256=0zpD6c5XcsLqKBLRVgRUSImZrCQMgtYv9Na0lNV9CzU,16
|
|
470
470
|
gbdtransformation/common/jpap/filters.py,sha256=78tglb02rkiOvGn-DipzrBpkFsmYF8pKOIan6j99QWs,2209
|
|
@@ -476,6 +476,7 @@ gbdtransformation/common/jprp/__init__.py,sha256=0zpD6c5XcsLqKBLRVgRUSImZrCQMgtY
|
|
|
476
476
|
gbdtransformation/common/jprp/filters.py,sha256=89NR8ZgekoeGnRfhPkXjzasDfWLolsGs7rpcT_BSANc,2234
|
|
477
477
|
gbdtransformation/common/jprp/template.yml,sha256=cgPMMyQouaGTW-AzWCNlWcMDY8S6CbJCd9w-SyT1uds,1459
|
|
478
478
|
gbdtransformation/commons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
479
|
+
gbdtransformation/commons/filters.py,sha256=fsZTGgSwb7hOq1AyOaWOWwF9ibM_2jo7Fp0lK4zDyqM,69
|
|
479
480
|
gbdtransformation/commons/emap/__init__.py,sha256=LPq1qlU4nPGFyKPsgKWZG9K2mV4vWR1OAZ1OGWH-NjU,16
|
|
480
481
|
gbdtransformation/commons/emap/filters.py,sha256=CA7FRKxuhP1QVlB7hh6uIf7EVBXr1MkJ_NKAaP7nqBo,68
|
|
481
482
|
gbdtransformation/commons/emap/template.yml,sha256=acb3nyjhNFSZa89KjIwrAhcc7Em2MrgjPgkvy-nBnYo,1308
|
|
@@ -579,9 +580,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
|
|
|
579
580
|
schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
|
|
580
581
|
schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
581
582
|
schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
|
|
582
|
-
wipo_gbd_transformation-1.1.
|
|
583
|
-
wipo_gbd_transformation-1.1.
|
|
584
|
-
wipo_gbd_transformation-1.1.
|
|
585
|
-
wipo_gbd_transformation-1.1.
|
|
586
|
-
wipo_gbd_transformation-1.1.
|
|
587
|
-
wipo_gbd_transformation-1.1.
|
|
583
|
+
wipo_gbd_transformation-1.1.61.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
|
|
584
|
+
wipo_gbd_transformation-1.1.61.dist-info/METADATA,sha256=swTfmewc4j_5M7BKtpEmGF9KLZ01_3X2wRfOV_NdrSo,577
|
|
585
|
+
wipo_gbd_transformation-1.1.61.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
586
|
+
wipo_gbd_transformation-1.1.61.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
|
|
587
|
+
wipo_gbd_transformation-1.1.61.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
|
|
588
|
+
wipo_gbd_transformation-1.1.61.dist-info/RECORD,,
|
{wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wipo_gbd_transformation-1.1.60.dist-info → wipo_gbd_transformation-1.1.61.dist-info}/top_level.txt
RENAMED
|
File without changes
|