Subversion Repositories SmartDukaan

Rev

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

Rev 13725 Rev 13730
Line 221... Line 221...
221
        raise ParseException("_getStatusFromDetailedStatus", "Found new order status" + detailedStatus)
221
        raise ParseException("_getStatusFromDetailedStatus", "Found new order status" + detailedStatus)
222
    
222
    
223
    
223
    
224
    def scrapeStoreOrders(self,):
224
    def scrapeStoreOrders(self,):
225
        orders = self._getActiveOrders()
225
        orders = self._getActiveOrders()
-
 
226
        print "Found orders", orders
226
        br = getBrowserObject()
227
        br = getBrowserObject()
227
        for order in orders:
228
        for order in orders:
228
            url = ORDER_TRACK_URL + re.findall('.*(\?.*?)$', order['orderSuccessUrl'],re.IGNORECASE)[0]
229
            url = ORDER_TRACK_URL + re.findall('.*(\?.*?)$', order['orderSuccessUrl'],re.IGNORECASE)[0]
229
            response = br.open(url)
230
            response = br.open(url)
230
            page = ungzipResponse(response)
231
            page = ungzipResponse(response)