Commit 08ac32dd2b0cb09596b01277a93f545e5a46bd05
1 parent
ac3425d5
adjusted v3-dev branch for publicbid
Showing
1 changed file
with
18 additions
and
18 deletions
@@ -178,11 +178,11 @@ def isodate_format(isodate, format): | @@ -178,11 +178,11 @@ def isodate_format(isodate, format): | ||
178 | 178 | ||
179 | 179 | ||
180 | def procuring_entity_name(tender_data): | 180 | def procuring_entity_name(tender_data): |
181 | - tender_data.data.procuringEntity['name'] = u"ТОВ \"ПлейТендер\"" | ||
182 | - tender_data.data.procuringEntity['name_en'] = u"TOV \"playtender\"" | ||
183 | - tender_data.data.procuringEntity.identifier['id'] = u"1234567890-playtender" | ||
184 | - tender_data.data.procuringEntity.identifier['legalName'] = u"ТОВ \"ПлейТендер\"" | ||
185 | - tender_data.data.procuringEntity.identifier['legalName_en'] = u"TOV \"playtender\"" | 181 | + tender_data.data.procuringEntity['name'] = u"ТОВ \"ПабликБид\"" |
182 | + tender_data.data.procuringEntity['name_en'] = u"TOV \"publicbid\"" | ||
183 | + tender_data.data.procuringEntity.identifier['id'] = u"1234567890-publicbid" | ||
184 | + tender_data.data.procuringEntity.identifier['legalName'] = u"ТОВ \"ПабликБид\"" | ||
185 | + tender_data.data.procuringEntity.identifier['legalName_en'] = u"TOV \"publicbid\"" | ||
186 | if 'address' in tender_data.data.procuringEntity: | 186 | if 'address' in tender_data.data.procuringEntity: |
187 | tender_data.data.procuringEntity.address['region'] = u"м. Київ" | 187 | tender_data.data.procuringEntity.address['region'] = u"м. Київ" |
188 | tender_data.data.procuringEntity.address['postalCode'] = u"123123" | 188 | tender_data.data.procuringEntity.address['postalCode'] = u"123123" |
@@ -193,24 +193,24 @@ def procuring_entity_name(tender_data): | @@ -193,24 +193,24 @@ def procuring_entity_name(tender_data): | ||
193 | tender_data.data.procuringEntity.contactPoint['name_en'] = u"Test" | 193 | tender_data.data.procuringEntity.contactPoint['name_en'] = u"Test" |
194 | tender_data.data.procuringEntity.contactPoint['email'] = u"chuzhin@mail.ua" | 194 | tender_data.data.procuringEntity.contactPoint['email'] = u"chuzhin@mail.ua" |
195 | tender_data.data.procuringEntity.contactPoint['telephone'] = u"+3801111111111" | 195 | tender_data.data.procuringEntity.contactPoint['telephone'] = u"+3801111111111" |
196 | - tender_data.data.procuringEntity.contactPoint['url'] = u"http://playtender.com.ua" | 196 | + tender_data.data.procuringEntity.contactPoint['url'] = u"https://public-bid.com.ua" |
197 | if 'buyers' in tender_data.data: | 197 | if 'buyers' in tender_data.data: |
198 | - tender_data.data.buyers[0]['name'] = u"ТОВ \"ПлейТендер\"" | ||
199 | - tender_data.data.buyers[0].identifier['id'] = u"1234567890-playtender" | ||
200 | - tender_data.data.buyers[0].identifier['legalName'] = u"ТОВ \"ПлейТендер\"" | 198 | + tender_data.data.buyers[0]['name'] = u"ТОВ \"ПабликБид\"" |
199 | + tender_data.data.buyers[0].identifier['id'] = u"1234567890-publicbid" | ||
200 | + tender_data.data.buyers[0].identifier['legalName'] = u"ТОВ \"ПабликБид\"" | ||
201 | return tender_data | 201 | return tender_data |
202 | 202 | ||
203 | # prepare data | 203 | # prepare data |
204 | def prepare_procuring_entity_data(data): | 204 | def prepare_procuring_entity_data(data): |
205 | try: | 205 | try: |
206 | - data['name'] = u"Playtender" | ||
207 | - data.identifier['id'] = u"playtender" | ||
208 | - data.identifier['legalName'] = u"Playtender" | 206 | + data['name'] = u"publicbid" |
207 | + data.identifier['id'] = u"publicbid" | ||
208 | + data.identifier['legalName'] = u"publicbid" | ||
209 | data.identifier['scheme'] = u"UA-EDR" | 209 | data.identifier['scheme'] = u"UA-EDR" |
210 | if 'name_en' in data: | 210 | if 'name_en' in data: |
211 | - data['name_en'] = u"Playtender" | 211 | + data['name_en'] = u"publicbid" |
212 | if 'legalName_en' in data.identifier: | 212 | if 'legalName_en' in data.identifier: |
213 | - data.identifier['legalName_en'] = u"Playtender" | 213 | + data.identifier['legalName_en'] = u"publicbid" |
214 | if 'address' in data: | 214 | if 'address' in data: |
215 | data.address['countryName'] = u"Україна" | 215 | data.address['countryName'] = u"Україна" |
216 | data.address['locality'] = u"Київ" | 216 | data.address['locality'] = u"Київ" |
@@ -224,7 +224,7 @@ def prepare_procuring_entity_data(data): | @@ -224,7 +224,7 @@ def prepare_procuring_entity_data(data): | ||
224 | data.contactPoint['name'] = u"Test" | 224 | data.contactPoint['name'] = u"Test" |
225 | if 'name_en' in data.contactPoint: | 225 | if 'name_en' in data.contactPoint: |
226 | data.contactPoint['name_en'] = u"Test" | 226 | data.contactPoint['name_en'] = u"Test" |
227 | - data.contactPoint['url'] = u"https://playtender.com.ua" | 227 | + data.contactPoint['url'] = u"https://public-bid.com.ua" |
228 | except Exception: | 228 | except Exception: |
229 | raise Exception('data is not a dictionary') | 229 | raise Exception('data is not a dictionary') |
230 | 230 | ||
@@ -239,9 +239,9 @@ def prepare_buyers_data(data): | @@ -239,9 +239,9 @@ def prepare_buyers_data(data): | ||
239 | return | 239 | return |
240 | 240 | ||
241 | item = next(iter(data), None) | 241 | item = next(iter(data), None) |
242 | - item['name'] = u"Playtender" | ||
243 | - item.identifier['id'] = u"playtender" | ||
244 | - item.identifier['legalName'] = u"Playtender" | 242 | + item['name'] = u"publicbid" |
243 | + item.identifier['id'] = u"publicbid" | ||
244 | + item.identifier['legalName'] = u"publicbid" | ||
245 | item.identifier['scheme'] = u"UA-EDR" | 245 | item.identifier['scheme'] = u"UA-EDR" |
246 | 246 | ||
247 | 247 |
Please
register
or
login
to post a comment