deskbar-applet r2214 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2214 - in trunk: . deskbar/handlers
- Date: Mon, 16 Jun 2008 11:59:32 +0000 (UTC)
Author: sebp
Date: Mon Jun 16 11:59:32 2008
New Revision: 2214
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2214&view=rev
Log:
Only add match when the result contains the expected number of columns
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/wikipedia-suggest.py
Modified: trunk/deskbar/handlers/wikipedia-suggest.py
==============================================================================
--- trunk/deskbar/handlers/wikipedia-suggest.py (original)
+++ trunk/deskbar/handlers/wikipedia-suggest.py Mon Jun 16 11:59:32 2008
@@ -99,8 +99,10 @@
matches = []
for line in result:
- title, lang = line.strip().split("\t")
- matches.append( WikipediaSuggestMatch(title, lang) )
+ cols = line.strip().split("\t", 2)
+ if len(cols) == 2:
+ title, lang = cols
+ matches.append( WikipediaSuggestMatch(title, lang) )
self._emit_query_ready( qstring, matches )
def has_config(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]