diff roundup/backends/__init__.py @ 5005:a86b0c02940d

Remove the tsearch2 backend The documentation within the tsearch2 backend labels it as being experimental and that it should not be used. The have_backend() function in roundup.backend returns False indicating that it does not exist and is labeled as "currently not working". The PostgreSQL website also seems to indicate that it has been deprecated since v8.3 when text searching was integrated into the core[1]. Considering all this, it seems like the best option is to just remove the tsearch2 backend. [1] http://www.postgresql.org/docs/9.4/static/tsearch2.html
author John Kristensen <john@jerrykan.com>
date Sun, 11 Oct 2015 00:06:51 +1100
parents 4960a2c21590
children 198b6e810c67
line wrap: on
line diff
--- a/roundup/backends/__init__.py	Sat Oct 10 23:35:51 2015 +1100
+++ b/roundup/backends/__init__.py	Sun Oct 11 00:06:51 2015 +1100
@@ -28,7 +28,6 @@
 _modules = {
     'mysql': ('MySQLdb',),
     'postgresql': ('psycopg',),
-    'tsearch2': ('psycopg',),
     'sqlite': ('pysqlite', 'pysqlite2', 'sqlite3', '_sqlite3', 'sqlite'),
 }
 
@@ -46,9 +45,6 @@
 
 def have_backend(name):
     '''Is backend "name" available?'''
-    if name == 'tsearch2':
-        # currently not working
-        return 0
     try:
         get_backend(name)
         return 1

Roundup Issue Tracker: http://roundup-tracker.org/