[csw-devel] SF.net SVN: gar:[21708] csw/mgar/gar/v2/lib/web/pkgdb_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Aug 11 16:08:31 CEST 2013
Revision: 21708
http://gar.svn.sourceforge.net/gar/?rev=21708&view=rev
Author: wahwah
Date: 2013-08-11 14:08:31 +0000 (Sun, 11 Aug 2013)
Log Message:
-----------
pkgdb-web: Display a hint how to examine metadata
It's not the most convenient method, but it works.
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-08-11 14:08:09 UTC (rev 21707)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py 2013-08-11 14:08:31 UTC (rev 21708)
@@ -13,6 +13,7 @@
import sqlobject
import web
import time
+import re
from lib.python import models
from lib.python import configuration
@@ -112,7 +113,12 @@
"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.")
+ "is in place.\n")
+ if re.match(r'[0-9a-f]{32}', md5_sum):
+ pkgstats_raw += '\n'
+ pkgstats_raw += ('curl -s http://buildfarm.opencsw.org/pkgdb/rest/srv4/'
+ '%s/pkg-stats/ '
+ '| python -m json.tool | less' % md5_sum)
# pkgstats_raw = pprint.pformat(pkg.GetStatsStruct())
if pkg.arch.name == 'all':
archs = models.Architecture.select(models.Architecture.q.name!='all')
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