Subversion Repositories SmartDukaan

Rev

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

Rev 18530 Rev 18590
Line 34... Line 34...
34
    get_user_by_mobile_number, is_alive, increase_trust_level, get_user_by_cart_id, \
34
    get_user_by_mobile_number, is_alive, increase_trust_level, get_user_by_cart_id, \
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_tax_invoice_counter, get_billing_address_for_user
39
    validate_access_token, is_tax_invoice_counter, get_billing_address_for_user, \
-
 
40
    is_creditor_assigned
40
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
41
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
41
from shop2020.utils.Utils import log_entry, to_py_date
42
from shop2020.utils.Utils import log_entry, to_py_date
42
 
43
 
43
    
44
    
44
 
45
 
Line 947... Line 948...
947
        try:
948
        try:
948
            return to_t_address(get_billing_address_for_user(userId))
949
            return to_t_address(get_billing_address_for_user(userId))
949
        finally:
950
        finally:
950
            self.closeSession()
951
            self.closeSession()
951
            
952
            
-
 
953
    def isCreditorAssigned(self, userId):
-
 
954
        try:
-
 
955
            return is_creditor_assigned(userId)
-
 
956
        finally:
-
 
957
            self.closeSession()
-
 
958
            
952
    def isAlive(self, ):
959
    def isAlive(self, ):
953
        """
960
        """
954
        For checking weather service is active alive or not. It also checks connectivity with database
961
        For checking weather service is active alive or not. It also checks connectivity with database
955
        """
962
        """
956
        try:
963
        try: