Subversion Repositories SmartDukaan

Rev

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

Rev 19247 Rev 19686
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
87
    get_cart_by_value, update_item_pricing, bulk_update_catalog
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 1850... Line 1850...
1850
    def updateItemPricing(self, itemPricingList):
1850
    def updateItemPricing(self, itemPricingList):
1851
        try:
1851
        try:
1852
            return update_item_pricing(itemPricingList)
1852
            return update_item_pricing(itemPricingList)
1853
        finally:
1853
        finally:
1854
            close_session()
1854
            close_session()
-
 
1855
    
-
 
1856
    def bulkUpdateCatalog(self,bulkUploadCatalog):
-
 
1857
        try:
-
 
1858
            bulk_update_catalog(bulkUploadCatalog)
-
 
1859
        finally:
-
 
1860
            close_session()
-
 
1861
        
1855
        
1862
        
1856
    
1863
    
1857
if __name__ == '__main__':
1864
if __name__ == '__main__':
1858
    c = CatalogServiceHandler()
1865
    c = CatalogServiceHandler()
1859
    bulk_items= c.getBulkPricingForItems([21053,1000])
1866
    bulk_items= c.getBulkPricingForItems([21053,1000])