Remove support for id based searching of lists
authorMagnus Hagander <magnus@hagander.net>
Wed, 21 Mar 2018 12:19:08 +0000 (13:19 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 21 Mar 2018 12:19:08 +0000 (13:19 +0100)
We only support name based searching from now on

django/archives/mailarchives/views.py

index 1b989cf6ffc8066e77e8a95318451f7560eec088..37a4f69b1b8d99ef32f92b0777594c3d1acd69e4 100644 (file)
@@ -594,7 +594,6 @@ def search(request):
        # Perform a search of the archives and return a JSON document.
        # Expects the following (optional) POST parameters:
        # q = query to search for
-       # l = comma separated list of lists to search for (DEPRECATED)
        # ln = comma separate list of listnames to search in
        # d = number of days back to search for, or -1 (or not specified)
        #     to search the full archives
@@ -615,12 +614,6 @@ def search(request):
                except:
                        # If failing to parse list of lists, just search all
                        lists = None
-       elif request.POST.has_key('l'):
-               try:
-                       lists = [int(x) for x in request.POST['l'].split(',')]
-               except:
-                       # If failing to parse list of lists, just search all
-                       lists = None
        else:
                lists = None
 
@@ -641,7 +634,6 @@ def search(request):
                list_sort = 'r'
 
        # Ok, we have all we need to do the search
-       curs = connection.cursor()
 
        if query.find('@') > 0:
                # This could be a messageid. So try to get that one specifically first.