Subversion Repositories SmartDukaan

Rev

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

Rev 5295 Rev 5527
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
11
    is_alive, get_provider_for_pickup_type
12
from shop2020.logistics.service.impl.Converters import to_t_awbupdate,\
12
from shop2020.logistics.service.impl.Converters import to_t_awbupdate,\
13
    to_t_provider
13
    to_t_provider
14
from shop2020.clients.CatalogClient import CatalogClient
14
from shop2020.clients.CatalogClient import CatalogClient
15
from shop2020.config.client.ConfigClient import ConfigClient
15
from shop2020.config.client.ConfigClient import ConfigClient
16
import datetime
16
import datetime
Line 215... Line 215...
215
        """
215
        """
216
        try:
216
        try:
217
            return get_holidays(fromDate, toDate)
217
            return get_holidays(fromDate, toDate)
218
        finally:
218
        finally:
219
            close_session()
219
            close_session()
-
 
220
            
-
 
221
    def getProviderForPickupType(self, pickUp):
-
 
222
        try:
-
 
223
            return get_provider_for_pickup_type(pickUp)
-
 
224
        finally:
-
 
225
            close_session()
220
    
226
    
221
    def closeSession(self, ):
227
    def closeSession(self, ):
222
        close_session()
228
        close_session()
223
 
229
 
224
    def isAlive(self, ):
230
    def isAlive(self, ):