Esempio n. 1
0
def _group_dissolved(context):
    """ when a group is dissolved all members of this 
    group get the end date of the group (if they do not
    have one yet) and there active_p status gets set to
    False"""
    dbutils.deactivateGroupMembers(context)
    groups = dbutils.endChildGroups(context)
    utils.dissolveChildGroups(groups, context)
    utils.unset_group_local_role(context)
Esempio n. 2
0
def _group_dissolve(info, context):
    """ when a group is dissolved all members of this 
    group get the end date of the group (if they do not
    have one yet) and there active_p status gets set to
    False"""
    dbutils.deactivateGroupMembers(context)
    groups = dbutils.endChildGroups(context)
    utils.dissolveChildGroups(groups, context)
    utils.unset_group_local_role(context)
Esempio n. 3
0
def dissolve(group):
    """Perform any actions required to dissolve a group.
    
    When a group is dissolved all members of this group get the end date of 
    the group (if they do not have one yet) and there active_p status gets set
    to False.
    """
    from bungeni.core.workflows import dbutils
    dbutils.deactivateGroupMembers(group)
    groups = dbutils.endChildGroups(group)
    utils.dissolveChildGroups(groups, group)
    utils.unset_group_local_role(group)