add new task delete_ldap_group

This commit is contained in:
Jan Dittberner 2014-12-29 15:22:52 +01:00
parent f2b8af39a0
commit 9b4bef0050
3 changed files with 16 additions and 1 deletions

View file

@ -98,7 +98,19 @@ def delete_ldap_user(username):
@shared_task
def delete_ldap_group_if_empty(groupname):
"""
This task deletes the given group.
This task deletes the given group if it is empty.
:param str groupname: the group name
:return: True if the user has been deleted, False otherwise
:rtype: boolean
"""
@shared_task
def delete_ldap_group(groupname):
"""
This taks deletes the given group.
:param str groupname: the group name
:return: True if the user has been deleted, False otherwise