示例#1
0
                    dest='option',
                    help='Enter a type of values to edit your CV (n/e/exp)')
parser.add_argument('-sl',
                    dest='sLink',
                    help='Enter the link for your social account')
result = parser.parse_args()

if (result.username and result.password and (result.register) == 'c'):
    Users.RegistrationC(result.username, result.password)
elif (result.username and result.password and (result.register) == 'hr'):
    Users.RegistrationHR(result.username, result.password)
elif (result.username and result.password and result.type):
    Users.Login(result.username, result.password, result.type)

elif (Users.CheckIfLoginHR(result.username)):
    if (result.search):
        HR.Serach(result.search)
    elif (result.id and result.status):
        HR.UpdateStatus(result.id, result.status)
    elif (result.id and result.note):
        HR.AddNotes(result.id, result.note)

elif (Users.CheckIfLoginC(result.username)):
    if (result.name and result.education and result.pic and result.id
            and result.exp):
        Candidate.CreateCV(result.name, result.education, result.pic,
                           result.id, result.exp, result.sLink)
    elif (result.id and result.value and result.option):
        Candidate.EditCV(result.id, result.value, result.option)
    elif (result.id):
        Candidate.CheckMyStatus(result.id)