Subversion Repositories SmartDukaan

Rev

Rev 22364 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22364 Rev 22452
Line 10... Line 10...
10
    commit_cart, validate_cart, merge_cart, delete_item_from_cart, check_out, \
10
    commit_cart, validate_cart, merge_cart, delete_item_from_cart, check_out, \
11
    reset_cart, apply_coupon_to_cart, remove_coupon, get_carts_with_coupon_count, \
11
    reset_cart, apply_coupon_to_cart, remove_coupon, get_carts_with_coupon_count, \
12
    delete_discounts_from_cart, save_discounts, show_cod_option, insure_item, \
12
    delete_discounts_from_cart, save_discounts, show_cod_option, insure_item, \
13
    cancel_insurance, store_insurance_specific_details, is_insurance_detail_present, \
13
    cancel_insurance, store_insurance_specific_details, is_insurance_detail_present, \
14
    add_store_to_cart, get_products_added_to_cart, validate_cart_plus, \
14
    add_store_to_cart, get_products_added_to_cart, validate_cart_plus, \
15
    add_items_to_cart, validate_cart_new, set_wallet_amount_in_cart
15
    add_items_to_cart, validate_cart_new, set_wallet_amount_in_cart, \
-
 
16
    add_item_pricing_to_cart
16
from shop2020.model.v1.user.impl.Converters import to_t_user, to_t_cart, \
17
from shop2020.model.v1.user.impl.Converters import to_t_user, to_t_cart, \
17
    to_t_address, to_t_user_communication, to_t_master_affiliate, to_t_affiliate, \
18
    to_t_address, to_t_user_communication, to_t_master_affiliate, to_t_affiliate, \
18
    to_t_tracker, to_t_track_log, to_t_private_deal_user, to_t_counter
19
    to_t_tracker, to_t_track_log, to_t_private_deal_user, to_t_counter
19
from shop2020.model.v1.user.impl.Dataservice import UserWidgetItem
20
from shop2020.model.v1.user.impl.Dataservice import UserWidgetItem
20
from shop2020.model.v1.user.impl.UserDataAccessors import create_user, \
21
from shop2020.model.v1.user.impl.UserDataAccessors import create_user, \
Line 38... Line 39...
38
    get_all_users_by_counter, get_active_access_token_for_user, \
39
    get_all_users_by_counter, get_active_access_token_for_user, \
39
    validate_access_token, is_address_editable_for_counter, \
40
    validate_access_token, is_address_editable_for_counter, \
40
    get_billing_address_for_user, is_creditor_assigned, is_tax_invoice_enabled_user, \
41
    get_billing_address_for_user, is_creditor_assigned, is_tax_invoice_enabled_user, \
41
    get_cart_by_value, get_counter_by_user_id, tax_invoice_available, \
42
    get_cart_by_value, get_counter_by_user_id, tax_invoice_available, \
42
    get_counter_name, update_address, update_counter
43
    get_counter_name, update_address, update_counter
43
from shop2020.thriftpy.model.v1.user.UserContextService import setWalletAmountInCart_args
44
from shop2020.thriftpy.model.v1.user.UserContextService import \
-
 
45
    setWalletAmountInCart_args
44
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
46
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
45
from shop2020.utils.Utils import log_entry, to_py_date
47
from shop2020.utils.Utils import log_entry, to_py_date
46
 
48
 
47
 
49
 
48
#from apport.hookutils import ret
50
#from apport.hookutils import ret
Line 1016... Line 1018...
1016
            
1018
            
1017
    def updateCounter(self, counter):
1019
    def updateCounter(self, counter):
1018
        try:
1020
        try:
1019
            return update_counter(counter)
1021
            return update_counter(counter)
1020
        finally:
1022
        finally:
1021
            self.closeSession()        
1023
            self.closeSession()
-
 
1024
            
-
 
1025
    def addItemPricingToCart(self, cartId, item_pricing_qty_list):
-
 
1026
    
-
 
1027
        try:
-
 
1028
            return add_item_pricing_to_cart(cartId, item_pricing_qty_list)
-
 
1029
        finally:
-
 
1030
            self.closeSession()
1022
        
1031
        
1023
1032