[Debtags-commits] [svn] r1866 - python

Enrico Zini enrico at costa.debian.org
Sun Aug 27 21:00:57 UTC 2006


Author: enrico
Date: Sun Aug 27 21:00:56 2006
New Revision: 1866

Modified:
   python/   (props changed)
   python/wxssearch
Log:
 r3203 at viaza:  enrico | 2006-08-27 21:59:20 +0100
 Discriminant tags now work


Modified: python/wxssearch
==============================================================================
--- python/wxssearch	(original)
+++ python/wxssearch	Sun Aug 27 21:00:56 2006
@@ -70,7 +70,10 @@
 
         # Compute the most interesting tags by discriminance
         self.discriminant = sorted(self.subcoll.iterTags(), \
-                  lambda a, b: cmp(self.subcoll.discriminance(a), self.subcoll.discriminance(b)))
+                  lambda b, a: cmp(self.subcoll.discriminance(a), self.subcoll.discriminance(b)))
+        #print "-----------------------------"
+        #for d in self.discriminant:
+        #    print d, self.subcoll.discriminance(d)
 
         # Notify the change
         e = Model.ModelEvent(Model.wxEVT_CHANGED)
@@ -190,6 +193,7 @@
     #            return None
 
     def modelChanged(self, event):
+        #print "TLMC"
         self.SetPage("<html><body>")
         first = True
 



More information about the Debtags-commits mailing list