Subversion Repositories SmartDukaan

Rev

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

Rev 14811 Rev 14848
Line 10... Line 10...
10
from dtr.utils.utils import fetchResponseUsingProxy
10
from dtr.utils.utils import fetchResponseUsingProxy
11
from pymongo.mongo_client import MongoClient
11
from pymongo.mongo_client import MongoClient
12
 
12
 
13
class Store(MStore):
13
class Store(MStore):
14
    OrderStatusMap = {
14
    OrderStatusMap = {
15
                      main.Store.ORDER_PLACED : ['approval', 'processing', 'shipping'],
15
                      main.Store.ORDER_PLACED : [],
16
                      main.Store.ORDER_DELIVERED : ['your item has been delivered'],
16
                      main.Store.ORDER_DELIVERED : [],
17
                      main.Store.ORDER_SHIPPED : ['in transit', 'shipment yet to be delivered'],
17
                      main.Store.ORDER_SHIPPED : ['in transit'],
18
                      main.Store.ORDER_CANCELLED : ['shipment is returned', 'your item has been returned', 'your shipment has been cancelled', 'your shipment has been cancelled.']
18
                      main.Store.ORDER_CANCELLED : []
19
                      
19
                      
20
                      }
20
                      }
21
    def __init__(self,store_id):
21
    def __init__(self,store_id):
22
        client = MongoClient('mongodb://localhost:27017/')
22
        client = MongoClient('mongodb://localhost:27017/')
23
        self.db = client.dtr
23
        self.db = client.dtr