[csw-devel] SF.net SVN: gar:[13235] csw/mgar/gar/v2/lib/web/pkgdb_web.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Feb 8 19:57:28 CET 2011


Revision: 13235
          http://gar.svn.sourceforge.net/gar/?rev=13235&view=rev
Author:   wahwah
Date:     2011-02-08 18:57:27 +0000 (Tue, 08 Feb 2011)

Log Message:
-----------
pkgdb-web: Display only registered packages

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/web/pkgdb_web.py

Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py	2011-02-08 15:02:57 UTC (rev 13234)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py	2011-02-08 18:57:27 UTC (rev 13235)
@@ -107,7 +107,9 @@
         sqlbuilder.Select(
           [models.Srv4FileStats.q.catalogname],
           distinct=True,
-          where=(models.Srv4FileStats.q.use_to_generate_catalogs==True),
+          where=sqlobject.AND(
+            models.Srv4FileStats.q.use_to_generate_catalogs==True,
+            models.Srv4FileStats.q.registered==True),
           orderBy=models.Srv4FileStats.q.catalogname)))
       return render.CatalognameList(rows)
     except sqlobject.main.SQLObjectNotFound, e:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list