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.'))
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.'))
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.'))
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.'))
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'))
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.'))
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.'))
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.') )
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.') )
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.') )
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.') )
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.') )
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.') )
def delete(request, travel_id): """delete travel""" return ain7_generic_delete(request, get_object_or_404(Travel, pk=travel_id), '/voyages/', _('Travel successfully deleted.'))
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.'))
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.'))
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.'))
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.'))
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.'))
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.'))
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.'))
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.'))
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.'))
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.'))