# Path: app/models/submissions.py
# def submit_application(resume, d, simple=False):
# def clean_up_data(d):
# def is_email_available(email):
# def save_resume(resume, first_name, last_name):
# def add_applicant(d):
# def submit_reference(applicant, d):
# def get_by_secret_md5(secret_md5):
# def add_reference(secret_md5, d):
# 
# Path: app/models/applicants.py
# def get_where(context='', query=None, user_id=None):
# def query(context='', query=None, offset=0, limit=50, order='creation_ts desc', user_id=None):
# def get_by_id(id):
# def admit(ids, user_id):
# def reject(ids, user_id):
# def undecide(ids, user_id):
# def grant(user_id, id, amount):
# def add_comment(id, comment):
# def rate(ids, score):
# def get_counts():
# def get_by_secret_md5(secret_md5):
# def get_dummy_record():
# def get_stats():


import web
import config
from app.models import submissions
from app.models import applicants
from config import view
from web import form
# Author: Alex Ksikes 




class refer:
    def GET(self, secret_md5):
        applicant = applicants.get_by_secret_md5(secret_md5)
        
        if not applicant and secret_md5 == '0' * 32:

# Path: app/models/submissions.py
# def submit_application(resume, d, simple=False):
# def clean_up_data(d):
# def is_email_available(email):
# def save_resume(resume, first_name, last_name):
# def add_applicant(d):
# def submit_reference(applicant, d):
# def get_by_secret_md5(secret_md5):
# def add_reference(secret_md5, d):
# 
# Path: app/models/applicants.py
# def get_where(context='', query=None, user_id=None):
# def query(context='', query=None, offset=0, limit=50, order='creation_ts desc', user_id=None):
# def get_by_id(id):
# def admit(ids, user_id):
# def reject(ids, user_id):
# def undecide(ids, user_id):
# def grant(user_id, id, amount):
# def add_comment(id, comment):
# def rate(ids, score):
# def get_counts():
# def get_by_secret_md5(secret_md5):
# def get_dummy_record():
# def get_stats():


# Path: app/controllers/submit_reference.py
import web
import config
from app.models import submissions
from app.models import applicants
from config import view
from web import form

# Author: Alex Ksikes 




class refer:
    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()