[extensions-web] extensions: Fix the extensions list when not running gnome-shell



commit 590096ee7a50e01413bed450316ab054633ddecd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon May 14 13:53:59 2012 -0300

    extensions: Fix the extensions list when not running gnome-shell
    
    If you have the browser-plugin installed, but aren't running gnome-shell,
    then the plugin will return -1. We shouldn't filter the paginator in this
    case.

 sweettooth/extensions/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 64b7e2c..df69ed1 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -119,7 +119,7 @@ def ajax_query_params_query(request, n_per_page=10):
     version_qs = models.ExtensionVersion.objects.visible()
 
     version_strings = request.GET.getlist('shell_version')
-    if version_strings and version_strings != ['all']:
+    if version_strings and version_strings not in (['all'], ['-1']):
         versions = set(get_versions_for_version_strings(version_strings))
         version_qs = version_qs.filter(shell_versions__in=versions)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]