Subversion Repositories SmartDukaan

Rev

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

Rev 4426 Rev 4630
Line 110... Line 110...
110
                t_updates.append(to_t_awbupdate(update))
110
                t_updates.append(to_t_awbupdate(update))
111
            return t_updates
111
            return t_updates
112
        finally:
112
        finally:
113
            close_session()
113
            close_session()
114
    
114
    
115
    def getLogisticsEstimation(self, itemId, destination_pin):
115
    def getLogisticsEstimation(self, itemId, destination_pin, type):
116
        """
116
        """
117
        Parameters:
117
        Parameters:
118
         - itemId
118
         - itemId
119
         - destination_pin
119
         - destination_pin
-
 
120
         - type
120
        """
121
        """
121
        try:
122
        try:
122
            return self.get_logistics_estimation_with_type(itemId, destination_pin)
123
            return self.get_logistics_estimation_with_type(itemId, destination_pin, type)
123
        finally:
124
        finally:
124
            close_session()
125
            close_session()
125
    
126
    
126
    def get_logistics_estimation_with_type(self, itemId, destination_pin, type = DeliveryType.PREPAID):
127
    def get_logistics_estimation_with_type(self, itemId, destination_pin, type):
127
        if not destination_pin:
128
        if not destination_pin:
128
            destination_pin = self.default_pincode
129
            destination_pin = self.default_pincode
129
        try:
130
        try:
130
            client = CatalogClient().get_client()
131
            client = CatalogClient().get_client()
131
            item = client.getItem(itemId)
132
            item = client.getItem(itemId)