| Line 397... |
Line 397... |
| 397 |
self.statusDescription = statusDescription
|
397 |
self.statusDescription = statusDescription
|
| 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 |
print "xmlScansText", xmlScans.text
|
401 |
print "xmlScansText", xmlScans.text
|
| - |
|
402 |
print "xmlScansTag", xmlScans.text
|
| 402 |
awbStatusObj = None
|
403 |
awbStatusObj = None
|
| 403 |
for xmlScan in xmlScans:
|
404 |
for xmlScan in xmlScans:
|
| 404 |
print "xmlScanText", xmlScan.text
|
405 |
print "xmlScanText", xmlScan.text
|
| - |
|
406 |
print "xmlScanTag", xmlScan.tag
|
| 405 |
reasonCodeNumber = __findElementByAttr(xmlScan, 'name', 'reason_code_number').text
|
407 |
reasonCodeNumber = __findElementByAttr(xmlScan, 'name', 'reason_code_number').text
|
| 406 |
if reasonCodeNumber in codes:
|
408 |
if reasonCodeNumber in codes:
|
| 407 |
statusDescription = __findElementByAttr(xmlScan, 'name', 'status').text
|
409 |
statusDescription = __findElementByAttr(xmlScan, 'name', 'status').text
|
| 408 |
statusDate = get_py_datetime(__findElementByAttr(xmlScan, 'name', 'updated_on').text)
|
410 |
statusDate = get_py_datetime(__findElementByAttr(xmlScan, 'name', 'updated_on').text)
|
| 409 |
awbStatusObj = __AWBStatusObj(None, reasonCodeNumber, statusDescription, statusDate)
|
411 |
awbStatusObj = __AWBStatusObj(None, reasonCodeNumber, statusDescription, statusDate)
|