Subversion Repositories SmartDukaan

Rev

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

Rev 12947 Rev 13136
Line 76... Line 76...
76
    get_all_private_deals_comparison, get_all_snapdeal_marketplaceItem, \
76
    get_all_private_deals_comparison, get_all_snapdeal_marketplaceItem, \
77
    get_all_flipkart_marketplaceItem, add_competitor_scraping, \
77
    get_all_flipkart_marketplaceItem, add_competitor_scraping, \
78
    get_previous_competitor_scraping, get_upload_result_by_id, add_amazon_promotion, \
78
    get_previous_competitor_scraping, get_upload_result_by_id, add_amazon_promotion, \
79
    get_amazon_promotion, update_amazon_promotion, get_vat_rates, \
79
    get_amazon_promotion, update_amazon_promotion, get_vat_rates, \
80
    update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
80
    update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
81
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items
81
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services
82
from shop2020.thriftpy.model.v1.catalog.ttypes import status, CatalogServiceException
82
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
-
 
83
    CatalogServiceException
83
from shop2020.utils.Utils import log_entry, to_py_date
84
from shop2020.utils.Utils import log_entry, to_py_date
84
import datetime
85
import datetime
85
 
86
 
86
class CatalogServiceHandler:
87
class CatalogServiceHandler:
87
    '''
88
    '''
Line 1694... Line 1695...
1694
                if item:
1695
                if item:
1695
                    ret_items.append(to_t_Amazonlisted(item))
1696
                    ret_items.append(to_t_Amazonlisted(item))
1696
            return ret_items
1697
            return ret_items
1697
        finally:
1698
        finally:
1698
            close_session()
1699
            close_session()
-
 
1700
 
-
 
1701
    def checkServices(self, map_lines):
-
 
1702
        try:
-
 
1703
            map_lines = check_services(map_lines)
-
 
1704
            return map_lines
-
 
1705
        finally:
-
 
1706
            close_session()
1699
    
1707
    
1700
        
1708
        
1701
    
1709
    
1702
if __name__ == '__main__':
1710
if __name__ == '__main__':
1703
    items = get_all_alive_items()
1711
    items = get_all_alive_items()