Commits

Anonymous committed ee8bdec

minor change to move Xapian port configuration into the ini file

  • Participants
  • Parent commits 5c49043

Comments (0)

Files changed (1)

openletters/controllers/search.py

         if queryString:
             # Connect to database
             try:
-                database = xapian.remote_open(config['xapian_host'], 33333)
+                database = xapian.remote_open(config['xapian_host'], config['xapian_port'])
             except xapian.DatabaseOpeningError:
-                return 'Cannot open database at ' + config['xapian_host']
+                return 'Cannot open database at ' + config['xapian_host'] + "on port:" + config['xapian_port']
             # Parse query string
             queryParser = xapian.QueryParser()
             queryParser.set_stemmer(xapian.Stem('english'))