[csw-devel] SF.net SVN: gar:[19852] csw/mgar/gar/v2/lib/web/pkgdb_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat Dec 8 01:03:44 CET 2012
Revision: 19852
http://gar.svn.sourceforge.net/gar/?rev=19852&view=rev
Author: wahwah
Date: 2012-12-08 00:03:44 +0000 (Sat, 08 Dec 2012)
Log Message:
-----------
pkgdb-web: Allow making queries from web pages
For Ben's application.
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-12-07 23:52:50 UTC (rev 19851)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py 2012-12-08 00:03:44 UTC (rev 19852)
@@ -434,6 +434,7 @@
srv4 = res.getOne()
mimetype, data = srv4.GetRestRepr()
web.header('Content-type', mimetype)
+ web.header('Access-Control-Allow-Origin', '*')
return cjson.encode(data)
except sqlobject.main.SQLObjectNotFound:
return cjson.encode(None)
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