wipo-gbd-transformation 1.1.78__py3-none-any.whl → 1.1.80__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/hrtm/filters.py +29 -1
- gbdtransformation/brands/hrtm/template.yml +9 -0
- {wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/METADATA +1 -1
- {wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/RECORD +8 -8
- {wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/LICENSE.md +0 -0
- {wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/WHEEL +0 -0
- {wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/entry_points.txt +0 -0
- {wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,16 @@ ignore_namespace = [
|
|
|
7
7
|
|
|
8
8
|
def get_entity_addr(addr):
|
|
9
9
|
if not addr: return None
|
|
10
|
-
|
|
10
|
+
result = ""
|
|
11
|
+
if addr.AddressStreet:
|
|
12
|
+
result+= addr.AddressStreet
|
|
13
|
+
if addr.AddressCity:
|
|
14
|
+
result+= " " + addr.AddressCity
|
|
15
|
+
if addr.AddressState:
|
|
16
|
+
result+= " " + addr.AddressState
|
|
17
|
+
if addr.AddressPostcode:
|
|
18
|
+
result+= " " + addr.AddressPostcode
|
|
19
|
+
return result.strip()
|
|
11
20
|
|
|
12
21
|
def create_full_name(name):
|
|
13
22
|
result = ""
|
|
@@ -128,3 +137,22 @@ def clean_app_reg_number(app_num):
|
|
|
128
137
|
if not app_num[:1].isdigit():
|
|
129
138
|
app_num = app_num[1:]
|
|
130
139
|
return app_num
|
|
140
|
+
|
|
141
|
+
def get_publication_date(publications):
|
|
142
|
+
# in the publication information, in case:
|
|
143
|
+
# PublicationSection == "Registration"
|
|
144
|
+
# the associated PublicationDate is the publicationDate
|
|
145
|
+
if publications == None:
|
|
146
|
+
return None
|
|
147
|
+
if isinstance(publications, list):
|
|
148
|
+
for publication in publications:
|
|
149
|
+
if 'PublicationSection' in publication and publication['PublicationSection'] == 'Registration':
|
|
150
|
+
if 'PublicationDate' in publication:
|
|
151
|
+
return publication['PublicationDate']
|
|
152
|
+
else:
|
|
153
|
+
if "Publication" in publications:
|
|
154
|
+
publication = publications["Publication"]
|
|
155
|
+
if 'PublicationSection' in publication and publication['PublicationSection'] == 'Registration':
|
|
156
|
+
if 'PublicationDate' in publication:
|
|
157
|
+
return publication['PublicationDate']
|
|
158
|
+
return None
|
|
@@ -21,6 +21,10 @@ applicationLanguageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
|
21
21
|
officeStatus: {{ TradeMark.MarkCurrentStatusCode }}
|
|
22
22
|
statusDate: {{ TradeMark.MarkCurrentStatusDate | convertdate('%Y-%m-%d') }}
|
|
23
23
|
|
|
24
|
+
publicationDate: {{ TradeMark.PublicationDetails | get_publication_date | convertdate('%Y-%m-%d')}}
|
|
25
|
+
|
|
26
|
+
expiryDate: {{ TradeMark.ExpiryDate | convertdate('%Y-%m-%d') }}
|
|
27
|
+
|
|
24
28
|
markDisclaimerDetails:
|
|
25
29
|
{% call(desc) match('MarkDisclaimerDetails.MarkDisclaimer', TradeMark) %}
|
|
26
30
|
- text: {{ desc }}
|
|
@@ -193,4 +197,9 @@ representatives:
|
|
|
193
197
|
{% endif %}
|
|
194
198
|
{% endcall %}
|
|
195
199
|
|
|
200
|
+
# here goes extra information that is office specific and that is pertinent for us to retain.
|
|
201
|
+
extra:
|
|
202
|
+
oppositionPeriodStartDate: {{ TradeMark.OppositionPeriodStartDate | convertdate('%Y-%m-%d') }}
|
|
203
|
+
oppositionPeriodEndDate: {{ TradeMark.OppositionPeriodEndDate | convertdate('%Y-%m-%d') }}
|
|
204
|
+
|
|
196
205
|
{% endif %}
|
{wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/RECORD
RENAMED
|
@@ -150,9 +150,9 @@ gbdtransformation/brands/gstm/filters.py,sha256=QGOXTX5HsoOoxfY9a31adtujzOS7C0KQ
|
|
|
150
150
|
gbdtransformation/brands/gstm/template.gs.yml,sha256=tQOXTIpmurgytddfqyWvKuCx-7K6ZxALMGXLn0mjg0s,1711
|
|
151
151
|
gbdtransformation/brands/gstm/template.yml,sha256=INQBe908BttDal83tMEXkpAOTasJ0vo5Myl_kFuatR8,1000
|
|
152
152
|
gbdtransformation/brands/hrtm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
153
|
-
gbdtransformation/brands/hrtm/filters.py,sha256=
|
|
153
|
+
gbdtransformation/brands/hrtm/filters.py,sha256=QYkXkWS4F-Hvs1JgMUBDD69pe6OBCdft04dOGH8O5Rk,5220
|
|
154
154
|
gbdtransformation/brands/hrtm/schema,sha256=7jQ-PC0VTx5NZ79Qf8xAZEX8sqFSUtjPwsvVYV8XZAs,1376
|
|
155
|
-
gbdtransformation/brands/hrtm/template.yml,sha256=
|
|
155
|
+
gbdtransformation/brands/hrtm/template.yml,sha256=dzgqIyM9tKHEiVJswxbw2eWyDo4nNRnN2Aj8awKsg9U,9644
|
|
156
156
|
gbdtransformation/brands/idtm/__init__.py,sha256=MBVFGkMlqAi-s2ur7pCLYe2uxtjIxx9n9wo2bpESvxU,311
|
|
157
157
|
gbdtransformation/brands/idtm/filters.py,sha256=HbcLmB9KTBFjLwHJdkJmM-u5wdE2JmxlqJvlSz1cTKk,3018
|
|
158
158
|
gbdtransformation/brands/idtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -585,9 +585,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
|
|
|
585
585
|
schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
|
|
586
586
|
schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
587
587
|
schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
|
|
588
|
-
wipo_gbd_transformation-1.1.
|
|
589
|
-
wipo_gbd_transformation-1.1.
|
|
590
|
-
wipo_gbd_transformation-1.1.
|
|
591
|
-
wipo_gbd_transformation-1.1.
|
|
592
|
-
wipo_gbd_transformation-1.1.
|
|
593
|
-
wipo_gbd_transformation-1.1.
|
|
588
|
+
wipo_gbd_transformation-1.1.80.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
|
|
589
|
+
wipo_gbd_transformation-1.1.80.dist-info/METADATA,sha256=tP8Dr_GU9q6qN5vSQjK_uctibxLasvZTiUrmTJjxQO8,577
|
|
590
|
+
wipo_gbd_transformation-1.1.80.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
591
|
+
wipo_gbd_transformation-1.1.80.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
|
|
592
|
+
wipo_gbd_transformation-1.1.80.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
|
|
593
|
+
wipo_gbd_transformation-1.1.80.dist-info/RECORD,,
|
{wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wipo_gbd_transformation-1.1.78.dist-info → wipo_gbd_transformation-1.1.80.dist-info}/top_level.txt
RENAMED
|
File without changes
|