cubicweb/server/sources/ldapfeed.py
branch3.25
changeset 12143 a446124bcf3c
parent 11755 96ced95e4002
child 12144 f54286c1cef5
--- a/cubicweb/server/sources/ldapfeed.py	Tue Apr 04 16:28:50 2017 +0200
+++ b/cubicweb/server/sources/ldapfeed.py	Wed Apr 05 14:02:58 2017 +0200
@@ -176,11 +176,9 @@
 
     _conn = None
 
-    def update_config(self, source_entity, typedconfig):
-        """update configuration from source entity. `typedconfig` is config
-        properly typed with defaults set
-        """
-        super(LDAPFeedSource, self).update_config(source_entity, typedconfig)
+    def init(self, activated, source_entity):
+        super(LDAPFeedSource, self).init(activated, source_entity)
+        typedconfig = self.config
         self.authmode = typedconfig['auth-mode']
         self._authenticate = getattr(self, '_auth_%s' % self.authmode)
         self.cnx_dn = typedconfig['data-cnx-dn']