# HG changeset patch # User Pierre-Yves David # Date 1366711274 -7200 # Node ID bda63114015cee9674072084f4b5d9387d310424 # Parent b03abd90a78587a2ec95bb366f9e22dd4857f990 [ldapuser] Deprecated the source We have ldapfeed for some time. maintaining both is cumbersome. This old style source will be dropped in 3.18. closes #2567712 diff -r b03abd90a785 -r bda63114015c doc/3.17.rst --- a/doc/3.17.rst Fri Apr 19 15:44:42 2013 +0200 +++ b/doc/3.17.rst Tue Apr 23 12:01:14 2013 +0200 @@ -29,6 +29,11 @@ moved to the `massmailing` cube. +Deprecation +--------------------- + +* ``ldapuser`` have been deprecated. It'll be fully dropped in the next + version. If you are still using ldapuser switch to ``ldapfeed`` **NOW**! Deprecated Code Drops ---------------------- diff -r b03abd90a785 -r bda63114015c server/sources/ldapuser.py --- a/server/sources/ldapuser.py Fri Apr 19 15:44:42 2013 +0200 +++ b/server/sources/ldapuser.py Tue Apr 23 12:01:14 2013 +0200 @@ -27,6 +27,7 @@ from rql.nodes import Relation, VariableRef, Constant, Function +import warnings from cubicweb import UnknownEid, RepositoryError from cubicweb.server import ldaputils from cubicweb.server.utils import cartesian_product @@ -45,6 +46,11 @@ } +# module is lazily imported +warnings.warn('Imminent drop of ldapuser. Switch to ldapfeed now!', + DeprecationWarning) + + class LDAPUserSource(ldaputils.LDAPSourceMixIn, AbstractSource): """LDAP read-only CWUser source""" support_entities = {'CWUser': False}