Subversion Repositories SmartDukaan

Rev

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

Rev 12957 Rev 12958
Line 435... Line 435...
435
    undelivered_orders = {}
435
    undelivered_orders = {}
436
    list_of_order = []
436
    list_of_order = []
437
    for order in orders_tobe_delivered:
437
    for order in orders_tobe_delivered:
438
        list_of_order.append(str(order.airwaybill_no))
438
        list_of_order.append(str(order.airwaybill_no))
439
    
439
    
-
 
440
    print list_of_order
440
    try:
441
    try:
441
        uri = Delhivery_URL + 'waybill=' + ','.join(list_of_order)
442
        uri = Delhivery_URL + 'waybill=' + ','.join(list_of_order)
442
        data = urllib2.urlopen(uri)
443
        data = urllib2.urlopen(uri)
443
        print data
444
        print data
444
        root = parse(data).getroot()
445
        root = parse(data).getroot()