[mirrorbrain-commits] [opensuse-svn] r6435 - trunk/tools/download-redirector-v2/mirrordoctor

From: Novell Forge SVN <noreply_at_novell.com>
Date: Wed, 11 Feb 2009 12:18:15 -0700 (MST)
Author: poeml
Date: 2009-02-11 12:18:09 -0700 (Wed, 11 Feb 2009)
New Revision: 6435

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
Log:
mb mirrorlist: make selection of enabled mirror work with boolean field types

Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-02-11 16:45:44 UTC (rev 6434)
+++ trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-02-11 19:18:09 UTC (rev 6435)
@@ -695,7 +695,7 @@
             mirrors = mb.conn.servers_match(self.conn.Server, args[0])
         else:
             from sqlobject.sqlbuilder import AND
-            mirrors = self.conn.Server.select(AND(self.conn.Server.q.enabled == 1,
+            mirrors = self.conn.Server.select(AND(self.conn.Server.q.enabled,
                                                   self.conn.Server.q.country != '**'),
                                               orderBy=['region', 'country', '-score'])
 

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-02-11Z19:18:51

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:11 GMT