Subversion Repositories SmartDukaan

Rev

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

Rev 18764 Rev 19247
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
87
    get_cart_by_value, update_item_pricing
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 1844... Line 1844...
1844
    def getCartByValue(self,cartIds):
1844
    def getCartByValue(self,cartIds):
1845
        try:
1845
        try:
1846
            return get_cart_by_value(cartIds)
1846
            return get_cart_by_value(cartIds)
1847
        finally:
1847
        finally:
1848
            close_session()
1848
            close_session()
-
 
1849
            
-
 
1850
    def updateItemPricing(self, itemPricingList):
-
 
1851
        try:
-
 
1852
            return update_item_pricing(itemPricingList)
-
 
1853
        finally:
-
 
1854
            close_session()
1849
        
1855
        
1850
    
1856
    
1851
if __name__ == '__main__':
1857
if __name__ == '__main__':
1852
    c = CatalogServiceHandler()
1858
    c = CatalogServiceHandler()
1853
    bulk_items= c.getBulkPricingForItems([21053,1000])
1859
    bulk_items= c.getBulkPricingForItems([21053,1000])