Example #1
0
    def remove_members(self, group):
        members = []
        for k in request.params:
            members = json.loads(k)['members']
            break

        dh = DirectoryHelper(
            directoryCN, directoryPassword, directoryDomain)

        for member in members:
            dh.remove_group(member, group)

        session['flash'] = 'Successfully updated %s' % group
        session.save()