Example #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.reference_form(self.form(), applicant,
                                   web.input(success='').success)
Example #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()
        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))