Subversion Repositories SmartDukaan

Rev

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

Rev 16346 Rev 16354
Line 30... Line 30...
30
            'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',      
30
            'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',      
31
            'Accept-Language' : 'en-US,en;q=0.8',                     
31
            'Accept-Language' : 'en-US,en;q=0.8',                     
32
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
32
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
33
        }
33
        }
34
 
34
 
35
ignoreItems = [24105, 23177, 10076]
35
ignoreItems = [24105, 23177]
36
 
36
 
37
def get_mongo_connection(port=27017):
37
def get_mongo_connection(port=27017):
38
    global con
38
    global con
39
    if con is None:
39
    if con is None:
40
        print "Establishing connection %s host and port %d" %(host,port)
40
        print "Establishing connection %s host and port %d" %(host,port)