Exemple #1
0
    def html(self):
        country_data = []
        cd = DeviceCountries.generateGraphData()
        for c in cd:
            country = getCountryFromCode(c[0].lower())
            country_data.append([c[0].upper(), c[1], country])


        self.render({
            'country_data': country_data,
        })
Exemple #2
0
 def json(self):
     json = simplejson.dumps(DeviceCountries.generateGraphData())
     self.response.out.write(json)