Subversion Repositories SmartDukaan

Rev

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

Rev 7733 Rev 7786
Line 14... Line 14...
14
    get_shipment_info, initialize, get_logistics_estimation, get_provider, \
14
    get_shipment_info, initialize, get_logistics_estimation, get_provider, \
15
    get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
15
    get_providers, close_session, get_free_awb_count, get_holidays, is_alive, \
16
    get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
16
    get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores, \
17
    get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
17
    get_pickup_store_by_hotspot_id, get_destination_code, update_pincode, \
18
    add_pincode, store_shipment_info, adjust_delivery_time,\
18
    add_pincode, store_shipment_info, adjust_delivery_time,\
19
    get_min_advance_amount, add_new_awbs, get_Serviceable_Location_As_Per_ProviderId_And_Pincode, run_Complete_Update_For_Pincode
19
    get_min_advance_amount, add_new_awbs, run_Logistics_Location_Info_Update
20
#End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
20
#End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
21
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
21
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo, \
22
    LogisticsServiceException, DeliveryType, PickUpType
22
    LogisticsServiceException, DeliveryType, PickUpType
23
from shop2020.thriftpy.model.v1.catalog.ttypes import status
23
from shop2020.thriftpy.model.v1.catalog.ttypes import status
24
import datetime
24
import datetime
Line 375... Line 375...
375
    def addNewAwbs(self, providerId, isCod, awbs):
375
    def addNewAwbs(self, providerId, isCod, awbs):
376
        try:
376
        try:
377
            return add_new_awbs(providerId, isCod, awbs)
377
            return add_new_awbs(providerId, isCod, awbs)
378
        finally:
378
        finally:
379
            close_session()
379
            close_session()
380
    #Start:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
-
 
381
    def getServiceableLocationAsPerProviderIdAndPincode(self, providerId, pincode):
-
 
382
        try:
380
            
383
            return get_Serviceable_Location_As_Per_ProviderId_And_Pincode(providerId, pincode)
-
 
384
        finally:
381
            
385
            close_session()
-
 
386
    def runCompleteUpdateForPincode(self):
382
    def runLogisticsLocationInfoUpdate(self, logisticsLocationInfoList, runCompleteUpdate):
387
        try:
383
        try:
388
            run_Complete_Update_For_Pincode()
384
            run_Logistics_Location_Info_Update(logisticsLocationInfoList, runCompleteUpdate)
389
        finally:
385
        finally:
390
            close_session()
386
            close_session()
391
    #End:- Added by Manish Sharma for Multiple Pincode Updation on 05-Jul-2013
-
 
392
387