| Line 119... |
Line 119... |
| 119 |
item.status = status.PAUSED_BY_RISK
|
119 |
item.status = status.PAUSED_BY_RISK
|
| 120 |
item.status_description = "This item is currently out of stock"
|
120 |
item.status_description = "This item is currently out of stock"
|
| 121 |
session.commit()
|
121 |
session.commit()
|
| 122 |
__send_mail_for_oos_item(item)
|
122 |
__send_mail_for_oos_item(item)
|
| 123 |
#This will clear cache from tomcat
|
123 |
#This will clear cache from tomcat
|
| 124 |
__clear_homepage_cache()
|
124 |
#__clear_homepage_cache()
|
| 125 |
else:
|
125 |
else:
|
| 126 |
availability = itemInfo[4]
|
126 |
availability = itemInfo[4]
|
| 127 |
t_item_shipping_info.isActive = (item.status == status.ACTIVE)
|
127 |
t_item_shipping_info.isActive = (item.status == status.ACTIVE)
|
| 128 |
t_item_shipping_info.quantity = availability
|
128 |
t_item_shipping_info.quantity = availability
|
| 129 |
except InventoryServiceException:
|
129 |
except InventoryServiceException:
|
| Line 508... |
Line 508... |
| 508 |
elif item.status == status.PAUSED:
|
508 |
elif item.status == status.PAUSED:
|
| 509 |
item.status_description = "This item is currently out of stock"
|
509 |
item.status_description = "This item is currently out of stock"
|
| 510 |
elif item.status == status.PAUSED_BY_RISK:
|
510 |
elif item.status == status.PAUSED_BY_RISK:
|
| 511 |
item.status_description = "This item is currently out of stock"
|
511 |
item.status_description = "This item is currently out of stock"
|
| 512 |
#This will clear cache from tomcat
|
512 |
#This will clear cache from tomcat
|
| 513 |
__clear_homepage_cache()
|
513 |
#__clear_homepage_cache()
|
| 514 |
elif item.status == status.ACTIVE:
|
514 |
elif item.status == status.ACTIVE:
|
| 515 |
item.status_description = "This item is active"
|
515 |
item.status_description = "This item is active"
|
| 516 |
elif item.status == status.IN_PROCESS:
|
516 |
elif item.status == status.IN_PROCESS:
|
| 517 |
item.status_description = "This item is in process"
|
517 |
item.status_description = "This item is in process"
|
| 518 |
elif item.status == status.CONTENT_COMPLETE:
|
518 |
elif item.status == status.CONTENT_COMPLETE:
|