Exemplo n.º 1
0
def is_eligible_to_create_partim(learning_unit_year, person):
    return conjunction(
        _any_existing_proposal_in_epc,
        is_person_linked_to_entity_in_charge_of_learning_unit,
        is_academic_year_in_range_to_create_partim,
        is_learning_unit_year_full
    )(learning_unit_year, person)
Exemplo n.º 2
0
def is_eligible_to_delete_learning_unit_year(learning_unit_year, person):
    return conjunction(
        _any_existing_proposal_in_epc,
        _can_delete_learning_unit_year_according_type)(
            learning_unit_year, person
        ) and person.is_linked_to_entity_in_charge_of_learning_unit_year(
            learning_unit_year)
Exemplo n.º 3
0
def is_eligible_for_modification_end_date(learning_unit_year, person):
    return conjunction(
        _any_existing_proposal_in_epc,
        negation(is_learning_unit_year_in_past),
        is_eligible_for_modification,
        _is_person_eligible_to_modify_end_date_based_on_container_type
    )(learning_unit_year, person)
Exemplo n.º 4
0
def is_eligible_to_create_modification_proposal(learning_unit_year, person):
    return conjunction(_any_existing_proposal_in_epc,
                       negation(is_learning_unit_year_in_past),
                       negation(is_learning_unit_year_a_partim),
                       _is_container_type_course_dissertation_or_internship,
                       negation(is_learning_unit_year_in_proposal),
                       is_person_linked_to_entity_in_charge_of_learning_unit)(
                           learning_unit_year, person)
Exemplo n.º 5
0
def is_eligible_to_create_partim(learning_unit_year, person, raise_exception=False):
    return conjunction(
        _any_existing_proposal_in_epc,
        is_person_linked_to_entity_in_charge_of_lu,
        is_academic_year_in_range_to_create_partim,
        is_learning_unit_year_full,
        is_external_learning_unit_cograduation
    )(learning_unit_year, person, raise_exception)
Exemplo n.º 6
0
def is_eligible_to_create_partim(learning_unit_year,
                                 person,
                                 raise_exception=False):
    return conjunction(is_person_linked_to_entity_in_charge_of_lu,
                       _is_learning_unit_year_in_state_to_create_partim,
                       is_learning_unit_year_full,
                       is_external_learning_unit_cograduation)(
                           learning_unit_year, person, raise_exception)
Exemplo n.º 7
0
Arquivo: perms.py Projeto: dukku1/osis
def is_eligible_to_create_partim(learning_unit_year,
                                 person,
                                 raise_exception=False):
    return conjunction(
        _any_existing_proposal_in_epc,
        is_person_linked_to_entity_in_charge_of_lu,
        is_academic_year_in_range_to_create_partim, is_learning_unit_year_full,
        is_external_learning_unit_cograduation)(learning_unit_year, person,
                                                raise_exception)
Exemplo n.º 8
0
def is_eligible_to_edit_proposal(proposal, person):
    if not proposal:
        return False

    return conjunction(
        _is_attached_to_initial_or_current_requirement_entity,
        _is_person_eligible_to_edit_proposal_based_on_state,
        _has_person_the_right_edit_proposal,
    )(proposal, person)
Exemplo n.º 9
0
def can_tutor_view_educational_information(user, learning_unit_year_id):
    return conjunction(_is_tutor_attributed_to_the_learning_unit)(
        user, learning_unit_year_id)
Exemplo n.º 10
0
def is_eligible_for_cancel_of_proposal(proposal, person):
    return conjunction(
        _is_person_in_accordance_with_proposal_state,
        _is_attached_to_initial_or_current_requirement_entity,
        _has_person_the_right_to_make_proposal
    )(proposal, person)
Exemplo n.º 11
0
def is_eligible_for_modification(learning_unit_year, person):
    return conjunction(
        _any_existing_proposal_in_epc,
        _is_learning_unit_year_in_range_to_be_modified,
        is_person_linked_to_entity_in_charge_of_learning_unit
    )(learning_unit_year, person)
Exemplo n.º 12
0
def is_eligible_to_consolidate_proposal(proposal, person):
    return conjunction(
        _has_person_the_right_to_consolidate,
        _is_proposal_in_state_to_be_consolidated,
        _is_attached_to_initial_or_current_requirement_entity
    )(proposal, person)
Exemplo n.º 13
0
def can_tutor_view_educational_information(user, learning_unit_year_id):
    return conjunction(
        _is_tutor_attributed_to_the_learning_unit
    )(user, learning_unit_year_id)