Subversion Repositories SmartDukaan

Rev

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

Rev 18977 Rev 19182
Line 36... Line 36...
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, \
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
41
    get_cart_by_value, get_counter_by_user_id, tax_invoice_available
42
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
42
from shop2020.thriftpy.model.v1.user.ttypes import ShoppingCartException
43
from shop2020.utils.Utils import log_entry, to_py_date
43
from shop2020.utils.Utils import log_entry, to_py_date
44
 
44
 
45
    
45
    
46
 
46
 
Line 978... Line 978...
978
    def getCartByValue(self,cartIds):
978
    def getCartByValue(self,cartIds):
979
        try:
979
        try:
980
            return get_cart_by_value(cartIds)
980
            return get_cart_by_value(cartIds)
981
        finally:
981
        finally:
982
            self.closeSession()
982
            self.closeSession()
-
 
983
 
-
 
984
    def taxInvoiceAvailable(self,address_id):
-
 
985
        try:
-
 
986
            return tax_invoice_available(address_id)
-
 
987
        finally:
-
 
988
            self.closeSession()
983
            
989
            
984
    def isAlive(self, ):
990
    def isAlive(self, ):
985
        """
991
        """
986
        For checking weather service is active alive or not. It also checks connectivity with database
992
        For checking weather service is active alive or not. It also checks connectivity with database
987
        """
993
        """