Subversion Repositories SmartDukaan

Rev

Rev 14679 | Rev 14692 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14679 Rev 14680
Line 34... Line 34...
34
 
34
 
35
class Store(MStore):
35
class Store(MStore):
36
    OrderStatusMap = {
36
    OrderStatusMap = {
37
                      main.Store.ORDER_PLACED : ['approval', 'processing', 'shipping'],
37
                      main.Store.ORDER_PLACED : ['approval', 'processing', 'shipping'],
38
                      main.Store.ORDER_DELIVERED : ['your item has been delivered'],
38
                      main.Store.ORDER_DELIVERED : ['your item has been delivered'],
39
                      main.Store.ORDER_SHIPPED : ['in transit'],
39
                      main.Store.ORDER_SHIPPED : ['in transit', 'shipment yet to be delivered'],
40
                      main.Store.ORDER_CANCELLED : ['shipment is returned', 'your item has been returned', 'your shipment has been cancelled']
40
                      main.Store.ORDER_CANCELLED : ['shipment is returned', 'your item has been returned', 'your shipment has been cancelled', 'your shipment has been cancelled.']
41
                      
41
                      
42
                      }
42
                      }
43
    def __init__(self,store_id):
43
    def __init__(self,store_id):
44
        client = MongoClient('mongodb://localhost:27017/')
44
        client = MongoClient('mongodb://localhost:27017/')
45
        self.db = client.dtr
45
        self.db = client.dtr