Subversion Repositories SmartDukaan

Rev

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

Rev 19686 Rev 19691
Line 82... Line 82...
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
    get_all_items_to_list_on_fbd, get_all_fbd_listed_items, \
85
    get_bulk_pricing_for_items, add_bulk_pricing_for_item, get_bulk_pricing_by_item_id, \
85
    get_bulk_pricing_for_items, add_bulk_pricing_for_item, get_bulk_pricing_by_item_id, \
86
    delete_bulk_pricing_for_item_by_id , delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
86
    delete_bulk_pricing_for_item_by_id , delete_bulk_pricing_for_item, update_bulk_prices_on_production, \
87
    get_cart_by_value, update_item_pricing, bulk_update_catalog
87
    get_cart_by_value, update_item_pricing, bulk_update_catalog, get_warranty_info_for_item
88
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
88
from shop2020.thriftpy.model.v1.catalog.ttypes import status, \
89
    CatalogServiceException
89
    CatalogServiceException
90
from shop2020.utils.Utils import log_entry, to_py_date
90
from shop2020.utils.Utils import log_entry, to_py_date
91
import datetime
91
import datetime
92
 
92
 
Line 1857... Line 1857...
1857
        try:
1857
        try:
1858
            bulk_update_catalog(bulkUploadCatalog)
1858
            bulk_update_catalog(bulkUploadCatalog)
1859
        finally:
1859
        finally:
1860
            close_session()
1860
            close_session()
1861
        
1861
        
-
 
1862
     
-
 
1863
            
-
 
1864
    def getWarrantyInfoForItem(self, itemId, itemCondition):
-
 
1865
        try:
-
 
1866
            return get_warranty_info_for_item(itemId, itemCondition)
-
 
1867
        finally:
-
 
1868
            close_session()
1862
        
1869
        
1863
    
1870
    
1864
if __name__ == '__main__':
1871
if __name__ == '__main__':
1865
    c = CatalogServiceHandler()
1872
    c = CatalogServiceHandler()
1866
    bulk_items= c.getBulkPricingForItems([21053,1000])
1873
    bulk_items= c.getBulkPricingForItems([21053,1000])