Subversion Repositories SmartDukaan

Rev

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

Rev 16398 Rev 16399
Line 35... Line 35...
35
CB_APPROVED = 'Approved'
35
CB_APPROVED = 'Approved'
36
CB_REJECTED = 'Rejected'
36
CB_REJECTED = 'Rejected'
37
CB_ONHOLD = 'On hold'
37
CB_ONHOLD = 'On hold'
38
CB_CANCELLED = 'Cancelled'
38
CB_CANCELLED = 'Cancelled'
39
 
39
 
-
 
40
ORDER_PLACED = 'Order Placed'
-
 
41
ORDER_DELIVERED = 'Delivered'
-
 
42
ORDER_SHIPPED = 'Shipped' #Lets see if we can make use of it
-
 
43
ORDER_CANCELLED = 'Cancelled'
-
 
44
 
40
 
45
 
41
def get_mongo_connection(host='localhost', port=27017):
46
def get_mongo_connection(host='localhost', port=27017):
42
    global con
47
    global con
43
    if con is None:
48
    if con is None:
44
        print "Establishing connection %s host and port %d" %(host,port)
49
        print "Establishing connection %s host and port %d" %(host,port)