Nuxeo mailing list archives
[Nuxeo-tickets] [Nuxeo Repository] #1862: Problem with has_key of
LDAPDirectoryVocabulary
Nuxeo Repository
trac at nuxeo.com
Tue Nov 20 11:55:47 CET 2007
#1862: Problem with has_key of LDAPDirectoryVocabulary
--------------------------+-------------------------------------------------
Reporter: tracguest | Owner: madarche
Type: defect | Status: new
Priority: P2 | Milestone:
Component: CPSDirectory | Version: 3.4.3
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
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
}}}
--
Ticket URL: <https://svn.nuxeo.org/trac/pub/ticket/1862>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.