Subversion Repositories SmartDukaan

Rev

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

Rev 19476 Rev 19481
Line 221... Line 221...
221
        
221
        
222
    if not provider_id:
222
    if not provider_id:
223
        raise LogisticsServiceException(101, "No provider assigned for pincode: " + str(destination_pin))
223
        raise LogisticsServiceException(101, "No provider assigned for pincode: " + str(destination_pin))
224
    try:
224
    try:
225
        logging.info( "destination_pin %s, provider_id %s, warehouse_location %s"%(destination_pin, provider_id, warehouse_location))
225
        logging.info( "destination_pin %s, provider_id %s, warehouse_location %s"%(destination_pin, provider_id, warehouse_location))
226
        logging.info( "Estimates %s, %s"%(delivery_estimate_cache[destination_pin, provider_id, warehouse_location]))
226
        logging.info( "Estimates %s, %s, %s"%(delivery_estimate_cache[destination_pin, provider_id, warehouse_location]))
227
        delivery_time = delivery_estimate_cache[destination_pin, provider_id, warehouse_location][0]
227
        delivery_time = delivery_estimate_cache[destination_pin, provider_id, warehouse_location][0]
228
        delivery_delay = delivery_estimate_cache[destination_pin, provider_id, warehouse_location][1]
228
        delivery_delay = delivery_estimate_cache[destination_pin, provider_id, warehouse_location][1]
229
        delivery_estimate = _DeliveryEstimateObject(delivery_time, delivery_delay, provider_id, codAllowed, otgAvailable)
229
        delivery_estimate = _DeliveryEstimateObject(delivery_time, delivery_delay, provider_id, codAllowed, otgAvailable)
230
        return delivery_estimate
230
        return delivery_estimate
231
    except Exception as ex:
231
    except Exception as ex: