Subversion Repositories SmartDukaan

Rev

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

Rev 15856 Rev 15876
Line 19... Line 19...
19
 
19
 
20
(options, args) = parser.parse_args()
20
(options, args) = parser.parse_args()
21
 
21
 
22
mc = MemCache(options.mongoHost)
22
mc = MemCache(options.mongoHost)
23
 
23
 
24
ignoreItems = [23219]
24
ignoreItems = []
25
 
25
 
26
def get_mongo_connection(host=options.mongoHost, port=27017):
26
def get_mongo_connection(host=options.mongoHost, port=27017):
27
    global con
27
    global con
28
    if con is None:
28
    if con is None:
29
        print "Establishing connection %s host and port %d" %(host,port)
29
        print "Establishing connection %s host and port %d" %(host,port)