From: SVN c. m. f. t. SWORD-A. p. <swo...@li...> - 2012-03-25 17:41:37
|
Revision: 490 http://sword-app.svn.sourceforge.net/sword-app/?rev=490&view=rev Author: richard-jones Date: 2012-03-25 17:41:23 +0000 (Sun, 25 Mar 2012) Log Message: ----------- add content type to demo web interface, and correct content type of declared available statements in web ui Modified Paths: -------------- sss/branches/sss-2/sss/repository.py sss/branches/sss-2/sss/webpy.py Modified: sss/branches/sss-2/sss/repository.py =================================================================== --- sss/branches/sss-2/sss/repository.py 2012-03-25 17:40:48 UTC (rev 489) +++ sss/branches/sss-2/sss/repository.py 2012-03-25 17:41:23 UTC (rev 490) @@ -1251,7 +1251,7 @@ frag += self._layout_sections(md_frag, file_frag) head_frag = "<link rel=\"http://purl.org/net/sword/terms/edit\" href=\"" + self.um.edit_uri(collection, id) + "\"/>" - head_frag += "<link rel=\"http://purl.org/net/sword/terms/statement\" type=\"application/atom+xml\" href=\"" + self.um.state_uri(collection, id, "atom") + "\"/>" + head_frag += "<link rel=\"http://purl.org/net/sword/terms/statement\" type=\"application/atom+xml;type=feed\" href=\"" + self.um.state_uri(collection, id, "atom") + "\"/>" head_frag += "<link rel=\"http://purl.org/net/sword/terms/statement\" type=\"application/rdf+xml\" href=\"" + self.um.state_uri(collection, id, "ore") + "\"/>" return self._wrap_html("Item: " + id, frag, head_frag) Modified: sss/branches/sss-2/sss/webpy.py =================================================================== --- sss/branches/sss-2/sss/webpy.py 2012-03-25 17:40:48 UTC (rev 489) +++ sss/branches/sss-2/sss/webpy.py 2012-03-25 17:41:23 UTC (rev 490) @@ -957,6 +957,7 @@ """ def GET(self, path=None): w = WebInterface(config) + web.header("Content-Type", "text/html") return w.get(path) class Part(SwordHttpHandler): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |