[csw-devel] SF.net SVN: gar:[13082] csw/mgar/gar/v2/lib/web/releases_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Jan 24 01:14:21 CET 2011
Revision: 13082
http://gar.svn.sourceforge.net/gar/?rev=13082&view=rev
Author: wahwah
Date: 2011-01-24 00:14:20 +0000 (Mon, 24 Jan 2011)
Log Message:
-----------
releases_web: Add a missing import
And add a bit of logging. Not sure if it'll work in a mod_python setting.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/web/releases_web.py
Modified: csw/mgar/gar/v2/lib/web/releases_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/releases_web.py 2011-01-24 00:12:56 UTC (rev 13081)
+++ csw/mgar/gar/v2/lib/web/releases_web.py 2011-01-24 00:14:20 UTC (rev 13082)
@@ -10,10 +10,12 @@
from lib.python import pkgdb
from lib.python import checkpkg_lib
from lib.python import package_stats
+from lib.python import opencsw
import datetime
import os
import os.path
import hashlib
+import logging
urls = (
r'/', 'Index',
@@ -112,6 +114,7 @@
sqo_osrel, sqo_arch, sqo_catrel = pkgdb.GetSqoTriad(
osrel_name, arch_name, catrel_name)
srv4 = models.Srv4FileStats.selectBy(md5_sum=md5_sum).getOne()
+ logging.warning("Srv4CatalogAssignment::GET srv4: %s", srv4.basename)
srv4_in_c = models.Srv4FileInCatalog.selectBy(
osrel=sqo_osrel,
arch=sqo_arch,
@@ -221,4 +224,5 @@
main = app.wsgifunc()
if __name__ == "__main__":
+ logging.basicConfig(level=logging.INFO)
app.run()
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