Пример #1
0
 def detailOfWeatherData(self,lon,lat):
     query_weather = QueryWeatherJson()
     query_weather.set("astro", "zh-CN")
     if query_weather.execute((lon,lat)) == False:
         return None
     query_weather.paser()
     #print query_weather.weatherJson    
     return query_weather.weatherJson    
Пример #2
0
 def detailOfWeatherData(self,index):
     lonlat_iter = self.lon_and_lat.fetch(index)
     if lonlat_iter == None:
         return None    
     query_weather = QueryWeatherJson()
     query_weather.set("astro", "zh-CN")
     if query_weather.execute(lonlat_iter.getLonLan()) == False:
         return None
     query_weather.paser()
         
     return query_weather.weatherJson