def get(self): page_title = "View Alerts" # retrieve values from the datastore entities_query = PassengerAlert.query() entities = entities_query.fetch(10) template_values = {"page_title": page_title, "extends_template": self.get_template(), "entities": entities} template = JINJA_ENVIRONMENT.get_template("templates/viewalert.html") self.response.write(template.render(template_values))
def get(self): main.set_pre_page("alertincident") if main.register_required(): self.redirect('registration') page_title = "Alert Incident" # retrieve values from the datastore entities_query2 = PassengerAlert.query() entities2 = entities_query2.fetch(10) template_values = { 'page_title': page_title, #'entities2': entities2, 'headsigns2' : TripsHeadsigns.find(), 'stops': Stops.find() } template = JINJA_ENVIRONMENT.get_template('templates/alertincident.html') self.response.write(template.render(template_values))