[kupfer] objects: TextSources rank items low by default
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] objects: TextSources rank items low by default
- Date: Wed, 9 Sep 2009 19:16:34 +0000 (UTC)
commit a3025f1b9d767e0c5a67fe48555bc90b3531f2a8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Sep 9 18:25:52 2009 +0200
objects: TextSources rank items low by default
The default rank should be very low, to not interfere with non-text
seraches etc. The rank can be boosted for individual strings by large
reuse.
kupfer/objects.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index 302d6b0..85ac729 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -1175,7 +1175,7 @@ class TextSource (KupferObject):
def get_rank(self):
"""All items are given this rank"""
- return 50
+ return 20
def get_items(self, text):
"""Get leaves for unicode string @text"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]