Subversion Repositories SmartDukaan

Rev

Rev 13146 | Rev 19421 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13146 Rev 19413
Line 13... Line 13...
13
    get_shipment_info, initialize, get_logistics_estimation, get_provider, \
13
    get_shipment_info, initialize, get_logistics_estimation, get_provider, \
14
    get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
14
    get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
15
    get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
15
    get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
16
    get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
16
    get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
17
    add_pincode, store_shipment_info, adjust_delivery_time, get_min_advance_amount, \
17
    add_pincode, store_shipment_info, adjust_delivery_time, get_min_advance_amount, \
18
    add_new_awbs, run_Logistics_Location_Info_Update, get_first_delivery_estimate_for_wh_location, \
18
    add_new_awbs, run_Logistics_Location_Info_Update, \
-
 
19
    get_first_delivery_estimate_for_wh_location, \
19
    get_provider_limit_details_for_pincode, get_new_empty_awb
20
    get_provider_limit_details_for_pincode, get_new_empty_awb, \
-
 
21
    get_logistics_locations
20
from shop2020.logistics.service.impl.DataService import \
22
from shop2020.logistics.service.impl.DataService import \
21
    ServiceableLocationDetails
23
    ServiceableLocationDetails
22
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
24
from shop2020.thriftpy.logistics.ttypes import ItemText, LogisticsInfo, \
23
    LogisticsServiceException, DeliveryType, PickUpType
25
    LogisticsServiceException, DeliveryType, PickUpType
24
from shop2020.thriftpy.model.v1.catalog.ttypes import status
26
from shop2020.thriftpy.model.v1.catalog.ttypes import status
25
from shop2020.thriftpy.logistics.ttypes import ItemText
-
 
26
from shop2020.utils.Utils import to_java_date, to_py_date
27
from shop2020.utils.Utils import to_java_date, to_py_date
27
import collections
28
import collections
28
import datetime
29
import datetime
29
import math
30
import math
30
import sys
31
import sys
Line 412... Line 413...
412
    def getNewEmptyAwb(self, providerId, type, orderQuantity):
413
    def getNewEmptyAwb(self, providerId, type, orderQuantity):
413
        try:
414
        try:
414
            return get_new_empty_awb(providerId, type, orderQuantity)
415
            return get_new_empty_awb(providerId, type, orderQuantity)
415
        finally:
416
        finally:
416
            close_session()
417
            close_session()
417
            
-
 
418
418
    def getLocationInfoMap(self, destinationPin, sellingPriceList):
-
 
419
        try:
-
 
420
            return get_logistics_locations(destinationPin, sellingPriceList)
-
 
421
        finally:
-
 
422
            close_session()
-
 
423
419
424