예제 #1
0
 def GET(self, secret_md5):
     applicant = applicants.get_by_secret_md5(secret_md5)
     
     if not applicant and secret_md5 == '0' * 32:
         applicant = applicants.get_dummy_record()
     
     return view.reference_form(self.form(), applicant, web.input(success='').success)
    def GET(self, secret_md5):
        applicant = applicants.get_by_secret_md5(secret_md5)

        if not applicant and secret_md5 == '0' * 32:
            applicant = applicants.get_dummy_record()

        return view.admitted_form(self.form(applicant), applicant,
                                  web.input(success='').success)
예제 #3
0
 def POST(self, secret_md5):
     applicant = applicants.get_by_secret_md5(secret_md5)
     
     f = self.form()
     if not f.validates(web.input(_unicode=False)):
         return view.reference_form(f, applicant)
     else:
         success = True
         try:
             submissions.submit_reference(applicant, f.d)
         except:
             raise
             success = False
         raise web.seeother('/submit_reference/%s?success=%s' % (secret_md5, success))
    def POST(self, secret_md5):
        applicant = applicants.get_by_secret_md5(secret_md5)

        f = self.form(applicant)
        if not f.validates(web.input(_unicode=False)):
            return view.admitted_form(f, applicant)
        else:
            success = True
            try:
                update_applicant(applicant, f.d)
            except:
                raise
                success = False
            raise web.seeother('/submit_admitted/%s?success=%s' %
                               (secret_md5, success))
    def POST(self, secret_md5):
        applicant = applicants.get_by_secret_md5(secret_md5)

        f = self.form()
        if not f.validates(web.input(_unicode=False)):
            return view.reference_form(f, applicant)
        else:
            success = True
            try:
                submissions.submit_reference(applicant, f.d)
            except:
                raise
                success = False
            raise web.seeother('/submit_reference/%s?success=%s' %
                               (secret_md5, success))