Subversion Repositories SmartDukaan

Rev

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

Rev 9816 Rev 9861
Line 54... Line 54...
54
    search_snapdeal_items , get_count_for_snapdeal_items , get_snapdeal_search_result_count, \
54
    search_snapdeal_items , get_count_for_snapdeal_items , get_snapdeal_search_result_count, \
55
    get_active_banners_for_mobile_site, get_preffered_insurer_for_item, get_snapdealitem_by_skuatsnapdeal, \
55
    get_active_banners_for_mobile_site, get_preffered_insurer_for_item, get_snapdealitem_by_skuatsnapdeal, \
56
    get_product_feed_submit, add_product_feed_submit, update_product_feed_submit, \
56
    get_product_feed_submit, add_product_feed_submit, update_product_feed_submit, \
57
    delete_product_feed_submit, get_all_product_feed_submit, get_snapdeal_item_detail,\
57
    delete_product_feed_submit, get_all_product_feed_submit, get_snapdeal_item_detail,\
58
    get_marketplace_details_for_item, update_marketplace_attributes_for_item,\
58
    get_marketplace_details_for_item, update_marketplace_attributes_for_item,\
59
    get_costing_for_marketplace, get_all_marketplace_items_for_priceupdate, update_marketplace_priceupdate_status
59
    get_costing_for_marketplace, get_all_marketplace_items_for_priceupdate, update_marketplace_priceupdate_status,\
-
 
60
    update_item_hold_inventory
60
    
61
    
61
from shop2020.thriftpy.model.v1.catalog.ttypes import status
62
from shop2020.thriftpy.model.v1.catalog.ttypes import status
62
from shop2020.utils.Utils import log_entry, to_py_date
63
from shop2020.utils.Utils import log_entry, to_py_date
63
import datetime
64
import datetime
64
 
65
 
Line 1405... Line 1406...
1405
        try:
1406
        try:
1406
            update_marketplace_priceupdate_status(skulist,timestamp,source)
1407
            update_marketplace_priceupdate_status(skulist,timestamp,source)
1407
        finally:
1408
        finally:
1408
            close_session()
1409
            close_session()
1409
            
1410
            
-
 
1411
 
-
 
1412
    def updateItemHoldInventory(self,itemHoldMap):
-
 
1413
        try:
-
 
1414
            update_item_hold_inventory(itemHoldMap)
-
 
1415
        finally:
-
 
1416
            close_session()
1410
    
1417
            
1411
if __name__ == '__main__':
1418
if __name__ == '__main__':
1412
    items = get_all_alive_items()
1419
    items = get_all_alive_items()
1413
    ret_items = []
1420
    ret_items = []
1414
    for item in items:
1421
    for item in items:
1415
        if item:
1422
        if item: