Subversion Repositories SmartDukaan

Rev

Rev 13531 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13531 Rev 16667
Line 6... Line 6...
6
AmazonFbaOrderItem
6
AmazonFbaOrderItem
7
import operator
7
import operator
8
 
8
 
9
 
9
 
10
con = None
10
con = None
11
prefix = {'FBA':0,'FBB':1,'FBG':2}
11
prefix = {'FBA':0,'FBB':1,'FBG':2, 'FBD':3}
12
 
12
 
13
def get_mongo_connection(host='localhost', port=27017):
13
def get_mongo_connection(host='localhost', port=27017):
14
    global con
14
    global con
15
    if con is None:
15
    if con is None:
16
        print "Establishing connection %s host and port %d" %(host,port)
16
        print "Establishing connection %s host and port %d" %(host,port)