Subversion Repositories SmartDukaan

Rev

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

Rev 22308 Rev 22310
Line 32... Line 32...
32
                      metavar="HOST")
32
                      metavar="HOST")
33
 
33
 
34
(options, args) = parser.parse_args()
34
(options, args) = parser.parse_args()
35
 
35
 
36
 
36
 
37
DataService.initialize(db_hostname=options.hostname)
37
DataService.initialize(db_hostname=options.dbHost)
38
solr = pysolr.Solr(options.solrPath, timeout=10)
38
solr = pysolr.Solr(options.solrPath, timeout=10)
39
 
39
 
40
def get_mongo_connection(host='localhost', port=27017):
40
def get_mongo_connection(host='localhost', port=27017):
41
    global con
41
    global con
42
    if con is None:
42
    if con is None: