예제 #1
0
    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)
예제 #2
0
파일: admin.py 프로젝트: marcpare/teambuzz
	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)
예제 #3
0
파일: admin.py 프로젝트: marcpare/teambuzz
	def get(self):
		teambuzz.renderPageHelper(self, "adminconfig.html")