Subversion Repositories SmartDukaan

Rev

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

Rev 13136 Rev 13493
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, check_services
81
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
-
 
82
    get_items
82
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
83
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
83
    CatalogServiceException
84
    CatalogServiceException
84
from shop2020.utils.Utils import log_entry, to_py_date
85
from shop2020.utils.Utils import log_entry, to_py_date
85
import datetime
86
import datetime
86
 
87
 
Line 376... Line 377...
376
            item = to_t_item( get_item(item_id))
377
            item = to_t_item( get_item(item_id))
377
            return item
378
            return item
378
        finally:
379
        finally:
379
            close_session()
380
            close_session()
380
    
381
    
-
 
382
    def getItems(self, item_ids):
-
 
383
        """
-
 
384
        Parameters:
-
 
385
         - item_ids
-
 
386
        """
-
 
387
        returnMap = {}
-
 
388
        items = get_items(item_ids)
-
 
389
        try:
-
 
390
            for item in items:
-
 
391
                item = to_t_item(item)
-
 
392
                returnMap[item.id]=item
-
 
393
            return returnMap
-
 
394
        finally:
-
 
395
                close_session()
-
 
396
    
381
    def getItemsByCatalogId(self, catalog_item_id):
397
    def getItemsByCatalogId(self, catalog_item_id):
382
        """
398
        """
383
        Parameters:
399
        Parameters:
384
        - catalog_item_id
400
        - catalog_item_id
385
        """
401
        """