Subversion Repositories SmartDukaan

Rev

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

Rev 22358 Rev 22364
Line 37... Line 37...
37
    get_private_deal_user, register_counter, search_counter, \
37
    get_private_deal_user, register_counter, search_counter, \
38
    get_all_users_by_counter, get_active_access_token_for_user, \
38
    get_all_users_by_counter, get_active_access_token_for_user, \
39
    validate_access_token, is_address_editable_for_counter, \
39
    validate_access_token, is_address_editable_for_counter, \
40
    get_billing_address_for_user, is_creditor_assigned, is_tax_invoice_enabled_user, \
40
    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, \
41
    get_cart_by_value, get_counter_by_user_id, tax_invoice_available, \
42
    get_counter_name, update_address
42
    get_counter_name, update_address, update_counter
-
 
43
from shop2020.thriftpy.model.v1.user.UserContextService import setWalletAmountInCart_args
43
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
44
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
44
from shop2020.utils.Utils import log_entry, to_py_date
45
from shop2020.utils.Utils import log_entry, to_py_date
45
from shop2020.thriftpy.model.v1.user.UserContextService import setWalletAmountInCart_args
-
 
46
 
46
 
47
 
47
 
48
#from apport.hookutils import ret
48
#from apport.hookutils import ret
49
class UserContextServiceHandler:
49
class UserContextServiceHandler:
50
    
50
    
Line 1011... Line 1011...
1011
    def updateAddress(self, address):
1011
    def updateAddress(self, address):
1012
        try:
1012
        try:
1013
            return update_address(address)
1013
            return update_address(address)
1014
        finally:
1014
        finally:
1015
            self.closeSession()
1015
            self.closeSession()
-
 
1016
            
-
 
1017
    def updateCounter(self, counter):
-
 
1018
        try:
-
 
1019
            return update_counter(counter)
-
 
1020
        finally:
-
 
1021
            self.closeSession()        
1016
        
1022
        
1017
1023