server/sources/ldapuser.py
changeset 8895 bda63114015c
parent 8707 28cbd267e96b
--- 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}