def post(self, email): self.isLegalUser(email) if self.request.url.endswith('apply'): self.checkData(mafCreate(email, self.request.body)) elif self.request.url.endswith('retreat'): self.isAdmin(email) self.checkData(retreatCreate(self.request.body)) else: self.checkData(create(email, self.request.body))
def post(self, email): if not self.isAdmin(email): self.error(404) else: self.checkData(retreatCreate(self.request.body))