1032 | | raise "Not Implemented !" # TODO !!! |
| 1032 | if user.Name not in [u.Name for u in self.getGroupMembers(group)] : |
| 1033 | result = self.doSearch("objectClass=pykotaGroup", None, base=group.ident, scope=ldap.SCOPE_BASE) |
| 1034 | if result : |
| 1035 | fields = result[0][1] |
| 1036 | if not fields.has_key(self.info["groupmembers"]) : |
| 1037 | fields[self.info["groupmembers"]] = [] |
| 1038 | try : |
| 1039 | fields[self.info["groupmembers"]].remove(self.userCharsetToDatabase(user.Name)) |
| 1040 | except ValueError : |
| 1041 | pass # TODO : Strange, shouldn't it be there ? |
| 1042 | else : |
| 1043 | self.doModify(group.ident, fields) |
| 1044 | group.Members.remove(user) |