| Line 398... |
Line 398... |
| 398 |
self.statusDate = statusDate
|
398 |
self.statusDate = statusDate
|
| 399 |
|
399 |
|
| 400 |
def __get_scan_by_code(xmlScans, codes):
|
400 |
def __get_scan_by_code(xmlScans, codes):
|
| 401 |
awbStatusObj = None
|
401 |
awbStatusObj = None
|
| 402 |
for xmlScan in xmlScans:
|
402 |
for xmlScan in xmlScans:
|
| - |
|
403 |
print "xmlScanText", xmlScan.text
|
| 403 |
reasonCodeNumber = __findElementByAttr(xmlScan, 'name', 'reason_code_number').text
|
404 |
reasonCodeNumber = __findElementByAttr(xmlScan, 'name', 'reason_code_number').text
|
| 404 |
if reasonCodeNumber in codes:
|
405 |
if reasonCodeNumber in codes:
|
| 405 |
statusDescription = __findElementByAttr(xmlScan, 'name', 'status').text
|
406 |
statusDescription = __findElementByAttr(xmlScan, 'name', 'status').text
|
| 406 |
statusDate = get_py_datetime(__findElementByAttr(xmlScan, 'name', 'updated_on').text)
|
407 |
statusDate = get_py_datetime(__findElementByAttr(xmlScan, 'name', 'updated_on').text)
|
| 407 |
awbStatusObj = __AWBStatusObj(None, reasonCodeNumber, statusDescription, statusDate)
|
408 |
awbStatusObj = __AWBStatusObj(None, reasonCodeNumber, statusDescription, statusDate)
|