| Line 53... |
Line 53... |
| 53 |
add_or_update_snapdeal_item, get_snapdeal_item, get_all_snapdeal_items , get_snapdeal_items, \
|
53 |
add_or_update_snapdeal_item, get_snapdeal_item, get_all_snapdeal_items , get_snapdeal_items, \
|
| 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_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 |
|
| 60 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
61 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| 61 |
from shop2020.utils.Utils import log_entry, to_py_date
|
62 |
from shop2020.utils.Utils import log_entry, to_py_date
|
| 62 |
import datetime
|
63 |
import datetime
|
| 63 |
|
64 |
|
| 64 |
class CatalogServiceHandler:
|
65 |
class CatalogServiceHandler:
|
| Line 1372... |
Line 1373... |
| 1372 |
def deleteProductFeedSubmit(self, catalog_itemId):
|
1373 |
def deleteProductFeedSubmit(self, catalog_itemId):
|
| 1373 |
try:
|
1374 |
try:
|
| 1374 |
return delete_product_feed_submit(catalog_itemId)
|
1375 |
return delete_product_feed_submit(catalog_itemId)
|
| 1375 |
finally:
|
1376 |
finally:
|
| 1376 |
close_session()
|
1377 |
close_session()
|
| - |
|
1378 |
|
| - |
|
1379 |
def getCostingForMarketplace(self, source, item_id):
|
| - |
|
1380 |
try:
|
| - |
|
1381 |
return to_t_marketplacepercentage(get_costing_for_marketplace(source, item_id))
|
| - |
|
1382 |
finally:
|
| - |
|
1383 |
close_session()
|
| 1377 |
|
1384 |
|
| 1378 |
def getAllProductFeedSubmit(self):
|
1385 |
def getAllProductFeedSubmit(self):
|
| 1379 |
try:
|
1386 |
try:
|
| 1380 |
log_entry(self, "all ProductFeedSubmit requested")
|
1387 |
log_entry(self, "all ProductFeedSubmit requested")
|
| 1381 |
feedSubmits = get_all_product_feed_submit()
|
1388 |
feedSubmits = get_all_product_feed_submit()
|