Ticket #1862 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Problem with has_key of LDAPDirectoryVocabulary

Reported by: tracguest Assigned to: madarche
Priority: P2 Milestone: CPS 3.4.6
Component: CPSDirectory Version: 3.4.3
Severity: normal Keywords:
Cc:

Description

Description : cette méthode renvoie l'erreur attributeError: hasEntryByDN(key). En effet hasEntryByDN() n'exite plus elle est remplacée par la méthode _hasEntry(). Voici le patch :

def adie_has_key(self, key):
        if self.add_empty_key and key == '':
            return 1
        dir = self._getDirectory()
        return dir._hasEntry(key)


from Products.CPSDirectory import LDAPDirectoryVocabulary
LDAPDirectoryVocabulary.has_key = adie_has_key

Attachments

LDAPDirectoryVocabularyPatch.py (1.6 kB) - added by tracguest on 11/20/07 11:56:04.

Change History

11/20/07 11:56:04 changed by tracguest

  • attachment LDAPDirectoryVocabularyPatch.py added.

04/17/08 18:07:04 changed by madarche

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to CPS 3.4.6.

Fixed by changeset [52754].