def get(self): if not testForAdmin(self): self.redirect("/admin/login") template_values = { "email_from": teambuzz.EMAIL_FROM, "root_url": teambuzz.ROOT_URL, "phases": teambuzz.Phase.all().order("start_date") } if teambuzz.Greek.all().count() == 0: template_values['is_new'] = True teambuzz.renderPageHelper(self, "adminhome.html", template_values)
def get(self): if not testForAdmin(self): self.redirect("/admin/login") template_values = { "email_from":teambuzz.EMAIL_FROM, "root_url":teambuzz.ROOT_URL, "phases":teambuzz.Phase.all().order("start_date") } if teambuzz.Greek.all().count() == 0: template_values['is_new'] = True teambuzz.renderPageHelper(self, "adminhome.html", template_values)
def get(self): teambuzz.renderPageHelper(self, "adminconfig.html")