from django.contrib.sites.shortcuts import get_current_site except ImportError: from django.contrib.sites.models import get_current_site from common import utils from registration.models import RegistrationProfile from django.contrib.sites.models import Site INDUSTRY_CATEGORIES = ( (0, 'Unknown'), (1, 'Accounting'), (2, 'Computer Hardware'), (3, 'Computer Software'), (4, 'Internet')) INDUSTRY_CATEGORIES_MAP = utils.list2map(INDUSTRY_CATEGORIES) INDUSTRY_CATEGORIES_DICT = utils.list2dict(INDUSTRY_CATEGORIES) class Roles: UNKNOWN = 0 ADMIN = 1 INTERVIEWER = 4 RECRUITER = 8 HIRING_MANAGER = 16 ROLES_CHOICES = ( (Roles.UNKNOWN, 'Unknown'), (Roles.ADMIN, 'Admin'), (Roles.INTERVIEWER, 'Interviewer'), (Roles.RECRUITER, 'Recruiter'), (Roles.HIRING_MANAGER, 'Hiring Manager'))
from company.models import Company from company.models import Employee from company.models import INDUSTRY_CATEGORIES from company.models import SKILL_LEVEL APPLICATION_STATUS = ( (1, 'Not started'), (2, 'Phone screen scheduled'), (3, 'Phone screen finished'), (4, 'Onsite scheduled'), (5, 'Onsite finished'), (6, 'Offered'), (7, 'Rejected'), (8, 'On hold')) APPLICATION_STATUS_MAP = utils.list2map(APPLICATION_STATUS) APPLICATION_STATUS_DICT = utils.list2dict(APPLICATION_STATUS) INTERVIEW_CATEGORIES = ( ('', 'Interview type'), (1, 'Phone screen'), (2, 'Onsite'), (3, 'Onsite with HR'), (4, 'Onsite with HM')) INTERVIEW_CATEGORIES_MAP = utils.list2map(INTERVIEW_CATEGORIES) INTERVIEW_CATEGORIES_DICT = utils.list2dict(INTERVIEW_CATEGORIES) INTERVIEW_STATUS = ( (1, 'Scheduled'), (2, 'Candidate Confirmed'), (3, 'Interviewer Confirmed'),