Subversion Repositories SmartDukaan

Rev

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

Rev 16422 Rev 16428
Line 32... Line 32...
32
            'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',      
32
            'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',      
33
            'Accept-Language' : 'en-US,en;q=0.8',                     
33
            'Accept-Language' : 'en-US,en;q=0.8',                     
34
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
34
            'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'
35
        }
35
        }
36
 
36
 
37
ignoreItems = [24102]
37
ignoreItems = [24291, 24102, 24101]
38
 
38
 
39
def get_mongo_connection(port=27017):
39
def get_mongo_connection(port=27017):
40
    global con
40
    global con
41
    if con is None:
41
    if con is None:
42
        print "Establishing connection %s host and port %d" %(host,port)
42
        print "Establishing connection %s host and port %d" %(host,port)
Line 595... Line 595...
595
        info = returnLatestPrice(item, item['source_id'],False)
595
        info = returnLatestPrice(item, item['source_id'],False)
596
        print info
596
        print info
597
 
597
 
598
def main():
598
def main():
599
    print datetime.now()
599
    print datetime.now()
600
    print "retuned %s"%(str(getLatestPriceById(4490)))
600
    print "retuned %s"%(str(getLatestPriceById(67)))
601
    print datetime.now()
601
    print datetime.now()
602
if __name__=='__main__':
602
if __name__=='__main__':
603
    main()
603
    main()
604
    
604