Beispiel #1
0
    def get(self, what, where):
        
        reponse = getApi.Canada().listeReponse(what, where)
    
        fluxHtml = getHtml.parseCanada().get(reponse) 

        self.response.headers['Content-Type'] = 'text/html'
        self.response.out.write(fluxHtml )
Beispiel #2
0
    def get(self):
        
        what = self.request.get("what")
        where = self.request.get("where")
        
        #On valide le ou
        gwhere = getWhere.getCountry(where)
        
        if(gwhere != 'Canada'):
            fluxHtml = 'Ce pays n est pas encore supporte'
        else:
            reponse = getApi.Canada().listeReponse(what, where)
            
            fluxHtml = getHtml.parseCanada().get(reponse)

        self.response.headers['Content-Type'] = 'text/html'
        self.response.out.write(fluxHtml)