Example #1
0
def education_delete(request, person_id=None, education_id=None):
    """education delete"""

    return ain7_generic_delete(
        request, get_object_or_404(EducationItem, pk=education_id),
        reverse(edit, args=[person_id]) + '#education',
        _('Education informations deleted successfully.'))
Example #2
0
def club_membership_delete(request, user_id=None, club_membership_id=None):

    return ain7_generic_delete(
        request,
        get_object_or_404(ClubMembership, pk=club_membership_id),
        '/annuaire/%s/edit/#assoc' % user_id,
        _('Club membership successfully deleted.'))
Example #3
0
def leisure_delete(request, person_id=None, leisure_id=None):
    """leisure delete"""

    return ain7_generic_delete(request,
                               get_object_or_404(LeisureItem, pk=leisure_id),
                               reverse(edit, args=[person_id]) + '#leisure',
                               _('Leisure informations successfully deleted.'))
Example #4
0
def publication_delete(request, person_id=None, publication_id=None):
    """publication delete"""

    return ain7_generic_delete(
        request, get_object_or_404(PublicationItem, pk=publication_id),
        reverse(edit, args=[person_id]) + '#publications',
        _('Publication informations deleted successfully.'))
Example #5
0
def subscription_delete(request, subscription_id=None):
    """delete subscription"""

    return ain7_generic_delete(request,
        get_object_or_404(Subscription, pk=subscription_id),
        reverse(subscriptions),
        _('Subscription successfully deleted'))
Example #6
0
def position_delete(request, person_id=None, position_id=None):
    """position delete"""

    return ain7_generic_delete(request,
                               get_object_or_404(Position, pk=position_id),
                               reverse(edit, args=[person_id]) + '#prof_exp',
                               _('Position successfully deleted.'))
Example #7
0
def role_delete(request, slug=None, role_id=None):
    """delete a role to a regional group"""

    return ain7_generic_delete(request,
        get_object_or_404(GroupLeader, pk=role_id),
        reverse(details, args=[slug]),
        _('Role successfully deleted.'))
Example #8
0
def delete_council_role(request, role_id):
    """delete council role"""

    return ain7_generic_delete(
        request,
        get_object_or_404(GroupLeader, pk=role_id),
        reverse(council),
        _('Role successfully deleted.')
    )
Example #9
0
def publication_delete(request, user_id=None, publication_id=None):
    """publication delete"""

    return ain7_generic_delete(
        request,
        get_object_or_404(PublicationItem, pk=publication_id),
        reverse(edit, args=[user_id]) + '#publications',
        _('Publication informations deleted successfully.')
    )
Example #10
0
def leisure_delete(request, user_id=None, leisure_id=None):
    """leisure delete"""

    return ain7_generic_delete(
        request,
        get_object_or_404(LeisureItem, pk=leisure_id),
        reverse(edit, args=[user_id]) + '#leisure',
        _('Leisure informations successfully deleted.')
    )
Example #11
0
def education_delete(request, user_id=None, education_id=None):
    """education delete"""

    return ain7_generic_delete(
        request,
        get_object_or_404(EducationItem, pk=education_id),
        reverse(edit, args=[user_id]) + '#education',
        _('Education informations deleted successfully.')
    )
Example #12
0
def position_delete(request, user_id=None, position_id=None):
    """position delete"""

    return ain7_generic_delete(
        request,
        get_object_or_404(Position, pk=position_id),
        reverse(edit, args=[user_id]) + '#prof_exp',
        _('Position successfully deleted.')
    )
Example #13
0
def configuration_delete(request, config_id=None, year=None):
    """delete subscription configuration"""

    return ain7_generic_delete(
        request,
        get_object_or_404(SubscriptionConfiguration, pk=config_id),
        reverse(configurations),
        _('Configuration successfully deleted.')
    )
Example #14
0
def delete(request, travel_id):
    """delete travel"""

    return ain7_generic_delete(request,
        get_object_or_404(Travel, pk=travel_id),
        '/voyages/', _('Travel successfully deleted.'))
Example #15
0
def delete(request, travel_id):
    """delete travel"""

    return ain7_generic_delete(request, get_object_or_404(Travel,
                                                          pk=travel_id),
                               '/voyages/', _('Travel successfully deleted.'))
Example #16
0
def phone_delete(request, user_id=None, phone_id=None):

    return ain7_generic_delete(request,
        get_object_or_404(PhoneNumber, pk=phone_id),
        '/annuaire/%s/edit/#phone' % user_id,
        _('Phone number successfully deleted.'))
Example #17
0
def im_delete(request, user_id=None, im_id=None):

    return ain7_generic_delete(request,
        get_object_or_404(InstantMessaging, pk=im_id),
        '/annuaire/%s/edit/#im' % user_id,
        _('Instant messaging account successfully deleted.'))
Example #18
0
def email_delete(request, user_id=None, email_id=None):

    return ain7_generic_delete(request, get_object_or_404(Email, pk=email_id),
                               '/annuaire/%s/edit/#email' % user_id,
                               _('Email address successfully deleted.'))
Example #19
0
def address_delete(request, user_id=None, address_id=None):

    return ain7_generic_delete(request,
        get_object_or_404(Address, pk=address_id),
        '/annuaire/%s/edit/#address' % user_id,
        _('Address successfully deleted.'))
Example #20
0
def website_delete(request, user_id=None, website_id=None):

    return ain7_generic_delete(request,
        get_object_or_404(WebSite, pk=website_id),
        '/annuaire/%s/edit/#website' % user_id,
        _('Website successfully deleted.'))
Example #21
0
def club_membership_delete(request, person_id=None, club_membership_id=None):

    return ain7_generic_delete(
        request, get_object_or_404(ClubMembership, pk=club_membership_id),
        '/annuaire/%s/edit/#assoc' % person_id,
        _('Club membership successfully deleted.'))
Example #22
0
def website_delete(request, person_id=None, website_id=None):

    return ain7_generic_delete(request,
                               get_object_or_404(WebSite, pk=website_id),
                               '/annuaire/%s/edit/#website' % person_id,
                               _('Website successfully deleted.'))
Example #23
0
def email_delete(request, person_id=None, email_id=None):

    return ain7_generic_delete(request, get_object_or_404(Email, pk=email_id),
                               '/annuaire/%s/edit/#email' % person_id,
                               _('Email address successfully deleted.'))
Example #24
0
def phone_delete(request, person_id=None, phone_id=None):

    return ain7_generic_delete(request,
                               get_object_or_404(PhoneNumber, pk=phone_id),
                               '/annuaire/%s/edit/#phone' % person_id,
                               _('Phone number successfully deleted.'))
Example #25
0
def address_delete(request, person_id=None, address_id=None):

    return ain7_generic_delete(request,
                               get_object_or_404(Address, pk=address_id),
                               '/annuaire/%s/edit/#address' % person_id,
                               _('Address successfully deleted.'))