Subversion Repositories SmartDukaan

Rev

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

Rev 5325 Rev 5520
Line 434... Line 434...
434
    for order in orders_tobe_delivered:
434
    for order in orders_tobe_delivered:
435
        list_of_order.append(str(order.airwaybill_no))
435
        list_of_order.append(str(order.airwaybill_no))
436
    
436
    
437
    try:
437
    try:
438
        uri = Delhivery_URL + 'waybill=' + ','.join(list_of_order)
438
        uri = Delhivery_URL + 'waybill=' + ','.join(list_of_order)
-
 
439
        data = urllib2.urlopen(uri)
-
 
440
        print data
439
        root = parse(urllib2.urlopen(uri)).getroot()
441
        root = parse(data).getroot()
440
        shipments = root.findall('Shipment')
442
        shipments = root.findall('Shipment')
441
        for shipment in shipments:
443
        for shipment in shipments:
442
            nodes = shipment.findall('Scans/ScanDetail')
444
            nodes = shipment.findall('Scans/ScanDetail')
443
            node_number = 0
445
            node_number = 0
444
            for element in nodes:
446
            for element in nodes: