| 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, to_t_flipkart_item, to_t_flipkart_item_details, \
|
13 |
to_t_marketplacepercentage, to_t_flipkart_item, to_t_flipkart_item_details
|
| - |
|
14 |
|
| 14 |
from shop2020.model.v1.catalog.impl.DataAcessors import add_item, retire_item, \
|
15 |
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, \
|
16 |
change_item_status, get_item, get_all_items, get_all_items_by_status, \
|
| 16 |
update_item, start_item_on, close_session, retire_item_on, \
|
17 |
update_item, start_item_on, close_session, retire_item_on, \
|
| 17 |
get_items_by_catalog_id, get_best_deals, get_best_deals_catalog_ids, \
|
18 |
get_items_by_catalog_id, get_best_deals, get_best_deals_catalog_ids, \
|
| 18 |
get_best_deals_count, get_best_sellers, get_latest_arrivals, \
|
19 |
get_best_deals_count, get_best_sellers, get_latest_arrivals, \
|
| Line 58... |
Line 59... |
| 58 |
get_marketplace_details_for_item, update_marketplace_attributes_for_item,\
|
59 |
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, \
|
60 |
get_costing_for_marketplace, get_all_marketplace_items_for_priceupdate, update_marketplace_priceupdate_status, \
|
| 60 |
update_item_hold_inventory, update_nlc_at_marketplaces, get_all_flipkart_items, get_flipkart_item, \
|
61 |
update_item_hold_inventory, update_nlc_at_marketplaces, get_all_flipkart_items, get_flipkart_item, \
|
| 61 |
add_or_update_flipkart_item, get_flipkart_item_detail, get_flipkart_items, search_flipkart_items, \
|
62 |
add_or_update_flipkart_item, get_flipkart_item_detail, get_flipkart_items, search_flipkart_items, \
|
| 62 |
get_count_for_flipkart_items, get_flipkart_search_result_count, get_all_fk_items, get_flipkart_item_by_sku_at_flipkart, \
|
63 |
get_count_for_flipkart_items, get_flipkart_search_result_count, get_all_fk_items, get_flipkart_item_by_sku_at_flipkart, \
|
| - |
|
64 |
get_all_fbb_listed_items
|
| - |
|
65 |
|
| 63 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
66 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| 64 |
from shop2020.utils.Utils import log_entry, to_py_date
|
67 |
from shop2020.utils.Utils import log_entry, to_py_date
|
| 65 |
import datetime
|
68 |
import datetime
|
| 66 |
|
69 |
|
| 67 |
class CatalogServiceHandler:
|
70 |
class CatalogServiceHandler:
|
| Line 1483... |
Line 1486... |
| 1483 |
|
1486 |
|
| 1484 |
def getFlipkartItemBySkyAtFlipkart(self,sku):
|
1487 |
def getFlipkartItemBySkyAtFlipkart(self,sku):
|
| 1485 |
return to_t_flipkart_item(get_flipkart_item_by_sku_at_flipkart(sku))
|
1488 |
return to_t_flipkart_item(get_flipkart_item_by_sku_at_flipkart(sku))
|
| 1486 |
|
1489 |
|
| 1487 |
def getAllFbbListedItems(self):
|
1490 |
def getAllFbbListedItems(self):
|
| 1488 |
try:
|
1491 |
try:
|
| 1489 |
items = get_all_fbb_listed_items()
|
1492 |
items = get_all_fbb_listed_items()
|
| 1490 |
ret_items = []
|
1493 |
ret_items = []
|
| 1491 |
for item in items:
|
1494 |
for item in items:
|
| 1492 |
if item:
|
1495 |
if item:
|
| 1493 |
ret_items.append(to_t_Amazonlisted(item))
|
1496 |
ret_items.append(to_t_Amazonlisted(item))
|