Ejemplo n.º 1
0
                    help='Enter a value to search candidate ')
parser.add_argument('-note', dest='note', help='Add note to candidate')
parser.add_argument('-pic', dest='pic', help='Add a picture')
parser.add_argument('-v', dest='value', help='Enter a value to edit your CV')
parser.add_argument('-o',
                    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,