Logo Search packages:      
Sourcecode: zope-ldapuserfolder version File versions

def LDAPUserFolder::LDAPUserFolder::LDAPUserFolder::manage_deleteGroups (   self,
  dns = [],
  REQUEST = None 

Delete groups from groups_base 

Definition at line 1197 of file LDAPUserFolder.py.

01197                                                        :
        """ Delete groups from groups_base """
        if len(dns) < 1:
            msg = 'You did not specify groups to delete!'

            if self._local_groups:
                add_groups = self._additional_groups
                for dn in dns:
                    if dn in add_groups:
                        del add_groups[add_groups.index(dn)]

                self._additional_groups = add_groups

                for dn in dns:
                    msg = self._delegate.delete(dn)

                    if msg:

            msg = msg or 'Deleted group(s):<br> %s' % '<br>'.join(dns)
        if REQUEST:
            return self.manage_grouprecords(manage_tabs_message=msg)

    security.declareProtected(manage_users, 'manage_deleteUsers')
    def manage_deleteUsers(self, dns=[], REQUEST=None):

Generated by  Doxygen 1.6.0   Back to index