[csw-devel] SF.net SVN: gar:[17569] csw/mgar/gar/v2/lib/web/pkgdb_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Tue Mar 27 00:26:59 CEST 2012
Revision: 17569
http://gar.svn.sourceforge.net/gar/?rev=17569&view=rev
Author: wahwah
Date: 2012-03-26 22:26:58 +0000 (Mon, 26 Mar 2012)
Log Message:
-----------
pkgdb-web: Correct the template path resolution
The file is already in lib/web, so the path only needs the templates/ element.
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 2012-03-26 22:26:14 UTC (rev 17568)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py 2012-03-26 22:26:58 UTC (rev 17569)
@@ -52,10 +52,8 @@
)
urls = urls_html + urls_rest
-render = web.template.render(
- os.path.join(
- os.path.split(__file__)[0],
- "lib/web/templates/"))
+templatedir = os.path.join(os.path.dirname(__file__), "templates/")
+render = web.template.render(templatedir)
class PkgStatsEncoder(json.JSONEncoder):
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