| Line 8... |
Line 8... |
| 8 |
to_t_source_item_pricing, to_t_product_notification_request, \
|
8 |
to_t_source_item_pricing, to_t_product_notification_request, \
|
| 9 |
to_t_banner, to_t_banner_map, to_t_product_notification_request_count, \
|
9 |
to_t_banner, to_t_banner_map, to_t_product_notification_request_count, \
|
| 10 |
to_t_voucher_item_mapping, to_t_insurer, to_t_Amazonlisted, to_t_ebay_item, \
|
10 |
to_t_voucher_item_mapping, to_t_insurer, to_t_Amazonlisted, to_t_ebay_item, \
|
| 11 |
to_t_uri_mapping, to_t_banner_list, to_t_campaign,to_t_snapdeal_item, \
|
11 |
to_t_uri_mapping, to_t_banner_list, to_t_campaign,to_t_snapdeal_item, \
|
| 12 |
to_t_snapdeal_item_details, to_t_product_feed_submit, to_t_marketplace_items, to_t_marketplace_itemprice,\
|
12 |
to_t_snapdeal_item_details, to_t_product_feed_submit, to_t_marketplace_items, to_t_marketplace_itemprice,\
|
| 13 |
to_t_marketplacepercentage
|
13 |
to_t_marketplacepercentage, to_t_flipkart_item
|
| 14 |
from shop2020.model.v1.catalog.impl.DataAcessors import add_item, retire_item, \
|
14 |
from shop2020.model.v1.catalog.impl.DataAcessors import add_item, retire_item, \
|
| 15 |
change_item_status, get_item, get_all_items, get_all_items_by_status, \
|
15 |
change_item_status, get_item, get_all_items, get_all_items_by_status, \
|
| 16 |
update_item, start_item_on, close_session, retire_item_on, \
|
16 |
update_item, start_item_on, close_session, retire_item_on, \
|
| 17 |
get_items_by_catalog_id, get_best_deals, get_best_deals_catalog_ids, \
|
17 |
get_items_by_catalog_id, get_best_deals, get_best_deals_catalog_ids, \
|
| 18 |
get_best_deals_count, get_best_sellers, get_latest_arrivals, \
|
18 |
get_best_deals_count, get_best_sellers, get_latest_arrivals, \
|
| Line 55... |
Line 55... |
| 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, update_nlc_at_marketplaces
|
60 |
update_item_hold_inventory, update_nlc_at_marketplaces, get_all_flipkart_items
|
| 61 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
61 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| 62 |
from shop2020.utils.Utils import log_entry, to_py_date
|
62 |
from shop2020.utils.Utils import log_entry, to_py_date
|
| 63 |
import datetime
|
63 |
import datetime
|
| 64 |
|
64 |
|
| 65 |
class CatalogServiceHandler:
|
65 |
class CatalogServiceHandler:
|
| Line 1416... |
Line 1416... |
| 1416 |
def updateNlcAtMarketplaces(self,item_id,vendor_id,nlc):
|
1416 |
def updateNlcAtMarketplaces(self,item_id,vendor_id,nlc):
|
| 1417 |
try:
|
1417 |
try:
|
| 1418 |
update_nlc_at_marketplaces(item_id,vendor_id,nlc)
|
1418 |
update_nlc_at_marketplaces(item_id,vendor_id,nlc)
|
| 1419 |
finally:
|
1419 |
finally:
|
| 1420 |
close_session()
|
1420 |
close_session()
|
| - |
|
1421 |
|
| - |
|
1422 |
def getAllFlipkartItems(self):
|
| - |
|
1423 |
try:
|
| - |
|
1424 |
return [to_t_flipkart_item(item) for item in get_all_flipkart_items()]
|
| - |
|
1425 |
finally:
|
| - |
|
1426 |
close_session()
|
| - |
|
1427 |
|
| 1421 |
|
1428 |
|
| 1422 |
if __name__ == '__main__':
|
1429 |
if __name__ == '__main__':
|
| 1423 |
items = get_all_alive_items()
|
1430 |
items = get_all_alive_items()
|
| 1424 |
ret_items = []
|
1431 |
ret_items = []
|
| 1425 |
for item in items:
|
1432 |
for item in items:
|