Subversion Repositories SmartDukaan

Rev

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

Rev 14816 Rev 15702
Line 78... Line 78...
78
    get_all_flipkart_marketplaceItem, add_competitor_scraping, \
78
    get_all_flipkart_marketplaceItem, add_competitor_scraping, \
79
    get_previous_competitor_scraping, get_upload_result_by_id, add_amazon_promotion, \
79
    get_previous_competitor_scraping, get_upload_result_by_id, add_amazon_promotion, \
80
    get_amazon_promotion, update_amazon_promotion, get_vat_rates, \
80
    get_amazon_promotion, update_amazon_promotion, get_vat_rates, \
81
    update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
81
    update_item_state_vat, mark_partially_active, get_ex_affiliate_item_info, \
82
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
82
    get_all_items_to_list_on_fbg, get_all_fbg_listed_items, check_services, \
83
    get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr
83
    get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr, \
-
 
84
    get_all_items_to_list_on_fbd, get_all_fbd_listed_items
84
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
85
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
85
    CatalogServiceException
86
    CatalogServiceException
86
from shop2020.utils.Utils import log_entry, to_py_date
87
from shop2020.utils.Utils import log_entry, to_py_date
87
import datetime
88
import datetime
88
 
89
 
Line 1771... Line 1772...
1771
    def getPricingForDtr(self,catalogItemId):
1772
    def getPricingForDtr(self,catalogItemId):
1772
        try:
1773
        try:
1773
            return to_t_item(get_pricing_for_dtr(catalogItemId))
1774
            return to_t_item(get_pricing_for_dtr(catalogItemId))
1774
        finally:
1775
        finally:
1775
            close_session()
1776
            close_session()
-
 
1777
            
-
 
1778
    def getAllItemstoListOnFbd(self):
-
 
1779
        try:
-
 
1780
            fbd_items = []
-
 
1781
            for item in get_all_items_to_list_on_fbd():
-
 
1782
                fbd_items.append(to_t_Amazonlisted(item))
-
 
1783
            return fbd_items
-
 
1784
        finally:
-
 
1785
            close_session()
-
 
1786
            
-
 
1787
    def getAllFbdListedItems(self):
-
 
1788
        try:
-
 
1789
            items = get_all_fbd_listed_items()
-
 
1790
            ret_items = []
-
 
1791
            for item in items:
-
 
1792
                if item:
-
 
1793
                    ret_items.append(to_t_Amazonlisted(item))
-
 
1794
            return ret_items
-
 
1795
        finally:
-
 
1796
            close_session()
1776
    
1797
    
1777
if __name__ == '__main__':
1798
if __name__ == '__main__':
1778
    items = get_all_alive_items()
1799
    items = get_all_alive_items()
1779
    ret_items = []
1800
    ret_items = []
1780
    for item in items:
1801
    for item in items: