| Line 76... |
Line 76... |
| 76 |
class Store(MStore):
|
76 |
class Store(MStore):
|
| 77 |
OrderStatusMap = {
|
77 |
OrderStatusMap = {
|
| 78 |
main.Store.ORDER_PLACED : ['approval', 'processing', 'shipping', 'your order has been placed.'],
|
78 |
main.Store.ORDER_PLACED : ['approval', 'processing', 'shipping', 'your order has been placed.'],
|
| 79 |
main.Store.ORDER_DELIVERED : ['your item has been delivered'],
|
79 |
main.Store.ORDER_DELIVERED : ['your item has been delivered'],
|
| 80 |
main.Store.ORDER_SHIPPED : ['in transit', 'shipment yet to be delivered', "item has been shipped.", "your item is out for delivery"],
|
80 |
main.Store.ORDER_SHIPPED : ['in transit', 'shipment yet to be delivered', "item has been shipped.", "your item is out for delivery"],
|
| 81 |
main.Store.ORDER_CANCELLED : ['shipment is returned', 'your item has been returned', 'your shipment has been cancelled', 'your shipment has been cancelled.', 'your item has been cancelled']
|
81 |
main.Store.ORDER_CANCELLED : ['shipment is returned', 'your item has been returned', 'your shipment has been cancelled', 'your shipment has been cancelled.', 'your item has been cancelled', 'your item has been returned']
|
| 82 |
|
82 |
|
| 83 |
}
|
83 |
}
|
| 84 |
def __init__(self,store_id):
|
84 |
def __init__(self,store_id):
|
| 85 |
client = MongoClient('mongodb://localhost:27017/')
|
85 |
client = MongoClient('mongodb://localhost:27017/')
|
| 86 |
self.db = client.dtr
|
86 |
self.db = client.dtr
|