Subversion Repositories SmartDukaan

Rev

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

Rev 13709 Rev 14182
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
83
    get_items, add_hs_item, get_hs_item, update_hs_item, get_pricing_for_dtr
84
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
84
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
85
    CatalogServiceException
85
    CatalogServiceException
86
from shop2020.utils.Utils import log_entry, to_py_date
86
from shop2020.utils.Utils import log_entry, to_py_date
87
import datetime
87
import datetime
88
 
88
 
Line 1766... Line 1766...
1766
        try:
1766
        try:
1767
            update_hs_item(hsItem)
1767
            update_hs_item(hsItem)
1768
        finally:
1768
        finally:
1769
            close_session()
1769
            close_session()
1770
    
1770
    
-
 
1771
    def getPricingForDtr(self,catalogItemId):
-
 
1772
        try:
-
 
1773
            print "In handler"
-
 
1774
            print get_pricing_for_dtr(catalogItemId)
-
 
1775
            return to_t_item(get_pricing_for_dtr(catalogItemId))
-
 
1776
        finally:
-
 
1777
            close_session()
-
 
1778
    
1771
if __name__ == '__main__':
1779
if __name__ == '__main__':
1772
    items = get_all_alive_items()
1780
    items = get_all_alive_items()
1773
    ret_items = []
1781
    ret_items = []
1774
    for item in items:
1782
    for item in items:
1775
        if item:
1783
        if item: