| Line 6... |
Line 6... |
| 6 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo,\
|
6 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo,\
|
| 7 |
LogisticsServiceException, DeliveryType
|
7 |
LogisticsServiceException, DeliveryType
|
| 8 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB,\
|
8 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB,\
|
| 9 |
get_shipment_info, initialize, get_logistics_estimation, get_provider,\
|
9 |
get_shipment_info, initialize, get_logistics_estimation, get_provider,\
|
| 10 |
get_providers, close_session, get_free_awb_count, get_holidays,\
|
10 |
get_providers, close_session, get_free_awb_count, get_holidays,\
|
| 11 |
is_alive, get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores
|
11 |
is_alive, get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores,\
|
| - |
|
12 |
get_pickup_store_by_hotspot_id
|
| 12 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate,\
|
13 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate,\
|
| 13 |
to_t_provider, to_t_pickup_store
|
14 |
to_t_provider, to_t_pickup_store
|
| 14 |
from shop2020.clients.CatalogClient import CatalogClient
|
15 |
from shop2020.clients.CatalogClient import CatalogClient
|
| 15 |
from shop2020.config.client.ConfigClient import ConfigClient
|
16 |
from shop2020.config.client.ConfigClient import ConfigClient
|
| 16 |
import datetime
|
17 |
import datetime
|
| Line 292... |
Line 293... |
| 292 |
"""
|
293 |
"""
|
| 293 |
try:
|
294 |
try:
|
| 294 |
storeToReturn = to_t_pickup_store(get_pickup_store(storeId))
|
295 |
storeToReturn = to_t_pickup_store(get_pickup_store(storeId))
|
| 295 |
return storeToReturn
|
296 |
return storeToReturn
|
| 296 |
finally:
|
297 |
finally:
|
| - |
|
298 |
close_session()
|
| - |
|
299 |
|
| - |
|
300 |
def getPickupStoreByHotspotId(self, hotspotId):
|
| - |
|
301 |
"""
|
| - |
|
302 |
Parameters:
|
| - |
|
303 |
- hotspotId
|
| - |
|
304 |
"""
|
| - |
|
305 |
try:
|
| - |
|
306 |
storeToReturn = to_t_pickup_store(get_pickup_store_by_hotspot_id(hotspotId))
|
| - |
|
307 |
return storeToReturn
|
| - |
|
308 |
finally:
|
| 297 |
close_session()
|
309 |
close_session()
|
| 298 |
|
310 |
|