| Line 548... |
Line 548... |
| 548 |
if orderIdSpan is not None:
|
548 |
if orderIdSpan is not None:
|
| 549 |
orderStatusList = soup.findAll(attrs={'class' : 'price ord_status'})
|
549 |
orderStatusList = soup.findAll(attrs={'class' : 'price ord_status'})
|
| 550 |
if orderStatusList is not None and len(orderStatusList)>0:
|
550 |
if orderStatusList is not None and len(orderStatusList)>0:
|
| 551 |
subOrderId = soup.findAll(attrs={'class':'price ord_no'})[0].text.strip()
|
551 |
subOrderId = soup.findAll(attrs={'class':'price ord_no'})[0].text.strip()
|
| 552 |
orderStatus = orderStatusList[0].contents[0].strip()
|
552 |
orderStatus = orderStatusList[0].contents[0].strip()
|
| 553 |
orderTable = soup.body.find("table", {'class':'table product-list'}).findAll('tr', recursive=False)
|
553 |
orderTables = soup.body.find("table", {'class':'table product-list'}).findAll('tr', recursive=False)
|
| - |
|
554 |
orderTable = orderTables[len(orderTables-1)].findAll('tr', recursive=False)
|
| 554 |
orderTable.pop(0)
|
555 |
orderTable.pop(0)
|
| 555 |
count = 1
|
556 |
count = 1
|
| 556 |
while count <= len(orderTable):
|
557 |
while count <= len(orderTable):
|
| 557 |
subbulk = self.db.merchantOrder.initialize_ordered_bulk_op()
|
558 |
subbulk = self.db.merchantOrder.initialize_ordered_bulk_op()
|
| 558 |
print 'Sub Order Id', str(subOrderId)+'-'+str(count)
|
559 |
print 'Sub Order Id', str(subOrderId)+'-'+str(count)
|