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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Jan 19 18:44:36 CET 2013


Revision: 20175
          http://gar.svn.sourceforge.net/gar/?rev=20175&view=rev
Author:   wahwah
Date:     2013-01-19 17:44:36 +0000 (Sat, 19 Jan 2013)
Log Message:
-----------
pkgdb-web: Don't show the full data structure

This used to a very useful feature of pkgdb-web.  You could see the full
python data structure with all the metadata in it.  Unfortunately, as of
January 2013, the amount of data is so large that displaying them can take
several minutes. For now, don't retrieve nor display this data structures at
all.

The only remining way is to get the data from the RESTful interface in JSON
format, and process them locally.

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	2013-01-19 17:44:24 UTC (rev 20174)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py	2013-01-19 17:44:36 UTC (rev 20175)
@@ -113,7 +113,12 @@
     osrels = models.OsRelease.select()
     catrels = models.CatalogRelease.select()
     all_tags = list(models.CheckpkgErrorTag.selectBy(srv4_file=pkg))
-    pkgstats_raw = pprint.pformat(pkg.GetStatsStruct())
+    pkgstats_raw = (
+      "As of January 2013, the stats stored are so big that "
+      "processing them can take several minutes before they "
+      "can be served. Disabling until a proper solution "
+      "is in place.")
+    # pkgstats_raw = pprint.pformat(pkg.GetStatsStruct())
     if pkg.arch.name == 'all':
       archs = models.Architecture.select(models.Architecture.q.name!='all')
     else:

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