class DumpData(webapp.RequestHandler): def get(self): # make the user log in if not users.get_current_user(): self.redirect(users.create_login_url(self.request.uri)) self.response.out.write('Here is all the data you have sent us:

') powerusages = db.GqlQuery("SELECT * FROM Powerusage WHERE author = :1 ORDER BY date", users.get_current_user()) for powerused in powerusages: if powerused.sensornum: self.response.out.write('%s\'s sensor #%d' % (powerused.author.nickname(), powerused.sensornum)) else: self.response.out.write(%s' % powerused.author.nickname()) self.response.out.write(' used: %f Watts at %s

' % (powerused.watt, powerused.date)) self.response.out.write("")