Пример #1
0
 def html(self):
     self.render({
         'version_data': DeviceVersions.generateGraphData(),
         'unknown_version_data': UnknownVersions.generateGraphData(),
         'version_table_data': DeviceVersions.generateGraphData() + UnknownVersions.generateGraphData(),
     })
Пример #2
0
 def json(self):
     json = simplejson.dumps(DeviceVersions.generateGraphData())
     self.response.out.write(json)