[Secure-testing-commits] r58437 - bin
Salvatore Bonaccorso
carnil at moszumanska.debian.org
Sun Dec 10 19:47:29 UTC 2017
Author: carnil
Date: 2017-12-10 19:47:29 +0000 (Sun, 10 Dec 2017)
New Revision: 58437
Modified:
bin/tracker_service.py
Log:
Register distributions.json static file
Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py 2017-12-10 19:47:28 UTC (rev 58436)
+++ bin/tracker_service.py 2017-12-10 19:47:29 UTC (rev 58437)
@@ -180,6 +180,7 @@
self.register('data/report', self.page_report)
self.register('style.css', self.page_style_css)
self.register('logo.png', self.page_logo_png)
+ self.register('distributions.json', self.page_distributions_json)
self.register('script.js', self.page_script_js)
def page_style_css(self, path, params, url):
@@ -194,6 +195,12 @@
f.close()
return BinaryResult(content,'image/png')
+ def page_distributions_json(self, path, params, url):
+ f=open('../static/distributions.json', 'r')
+ content=f.read()
+ f.close()
+ return BinaryResult(content,'application/json')
+
def page_script_js(self, path, params, url):
f=open('../static/script.js', 'r')
content=f.read()
More information about the Secure-testing-commits
mailing list