Subversion Repositories SmartDukaan

Rev

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

Rev 18744 Rev 18764
Line 35... Line 35...
35
    get_trust_level, remove_user_communication, get_user_emails, \
35
    get_trust_level, remove_user_communication, get_user_emails, \
36
    is_private_deal_user, add_private_deal_user, change_private_deal_user_status, \
36
    is_private_deal_user, add_private_deal_user, change_private_deal_user_status, \
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, get_billing_address_for_user, \
39
    validate_access_token, is_address_editable_for_counter, get_billing_address_for_user, \
40
    is_creditor_assigned, is_tax_invoice_enabled_user
40
    is_creditor_assigned, is_tax_invoice_enabled_user, get_cart_by_value
41
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
41
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
42
from shop2020.utils.Utils import log_entry, to_py_date
42
from shop2020.utils.Utils import log_entry, to_py_date
43
 
43
 
44
    
44
    
45
 
45
 
Line 969... Line 969...
969
        try:
969
        try:
970
            return is_tax_invoice_enabled_user(userId)
970
            return is_tax_invoice_enabled_user(userId)
971
        finally:
971
        finally:
972
            self.closeSession()
972
            self.closeSession()
973
            
973
            
-
 
974
    def getCartByValue(self,cartIds):
-
 
975
        try:
-
 
976
            return get_cart_by_value(cartIds)
-
 
977
        finally:
-
 
978
            self.closeSession()
-
 
979
            
974
    def isAlive(self, ):
980
    def isAlive(self, ):
975
        """
981
        """
976
        For checking weather service is active alive or not. It also checks connectivity with database
982
        For checking weather service is active alive or not. It also checks connectivity with database
977
        """
983
        """
978
        try:
984
        try: