def get(self): if not testForAdmin(self): self.redirect("/admin/login") # try to fetch the user data = self.request.GET try: user = db.get(data['user']) except: teambuzz.errorRedirect(self, "Invalid user") # reject their app user.rejectPCApp() message = mail.EmailMessage() message.subject = "Your TEAMBuzz PC Application has been Rejected" message.sender = teambuzz.EMAIL_FROM message.to = user.email message.body = """ Hello, Your application to be a Project Coordinator for TEAMBuzz has just been rejected If you have any questions in regards to this decision, please contact our chair of project coordinators, Marleen Kanagawa, at [email protected]. Thank you for your willingness to be of service. Regards, TEAMBuzz Steering Committee """ message.send() self.redirect("/admin/apps")
def get(self): if not testForAdmin(self): self.redirect("/admin/login") # try to fetch the user data = self.request.GET try: user = db.get(data['user']) except: teambuzz.errorRedirect(self, "Invalid user") # reject their app user.rejectPCApp() message = mail.EmailMessage() message.subject = "Your TEAMBuzz PC Application has been Rejected" message.sender = teambuzz.EMAIL_FROM message.to = user.email message.body = """ Hello, Your application to be a Project Coordinator for TEAMBuzz has just been rejected If you have any questions in regards to this decision, please contact our chair of project coordinators, Paul Anderson, at [email protected]. Thank you for your willingness to be of service. Regards, TEAMBuzz Steering Committee """ message.send() self.redirect("/admin/apps")
def get(self): if not testForAdmin(self): self.redirect("/admin/login") # try to fetch the user data = self.request.GET try: user = db.get(data['user']) except: teambuzz.errorRedirect(self, "Invalid user") # make the user a pc user.makePC() message = mail.EmailMessage() message.subject = "Your TEAMBuzz PC Application has been Approved!" message.sender = teambuzz.EMAIL_FROM message.to = user.email message.body = """ Hello! Your application to be a Project Coordinator for TEAMBuzz has just been approved! A project will be assigned to you shortly! Thank you for volunteering your time for the Atlanta Community! Regards, TEAMBuzz Steering Committee """ message.send() self.redirect("/admin/apps")