Subversion Repositories SmartDukaan

Rev

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

Rev 14676 Rev 14679
Line 32... Line 32...
32
AFF_STATUS_PENDING='pending'
32
AFF_STATUS_PENDING='pending'
33
 
33
 
34
 
34
 
35
class Store(MStore):
35
class Store(MStore):
36
    OrderStatusMap = {
36
    OrderStatusMap = {
37
                      main.Store.ORDER_PLACED : ['approval', 'processing'],
37
                      main.Store.ORDER_PLACED : ['approval', 'processing', 'shipping'],
38
                      main.Store.ORDER_DELIVERED : ['shipping'],
38
                      main.Store.ORDER_DELIVERED : ['your item has been delivered'],
39
                      main.Store.ORDER_SHIPPED : ['in transit'],
39
                      main.Store.ORDER_SHIPPED : ['in transit'],
40
                      main.Store.ORDER_CANCELLED : ['shipment is returned']
40
                      main.Store.ORDER_CANCELLED : ['shipment is returned', 'your item has been returned', '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