cubicweb/server/sources/__init__.py
branch3.25
changeset 12143 a446124bcf3c
parent 12058 52ce05f7e9ee
child 12144 f54286c1cef5
--- a/cubicweb/server/sources/__init__.py	Tue Apr 04 16:28:50 2017 +0200
+++ b/cubicweb/server/sources/__init__.py	Wed Apr 05 14:02:58 2017 +0200
@@ -99,8 +99,8 @@
         # on logging
         set_log_methods(self, getLogger('cubicweb.sources.' + unormalize(text_type(self.uri))))
         source_config.pop('type')
-        self.update_config(None, self.check_conf_dict(eid, source_config,
-                                                      fail_if_unknown=False))
+        self.config = self.check_conf_dict(
+            eid, source_config, fail_if_unknown=False)
 
     def __repr__(self):
         return '<%s %s source %s @%#x>' % (self.uri, self.__class__.__name__,
@@ -176,14 +176,6 @@
         return cls.check_conf_dict(source_entity.eid, source_entity.host_config,
                                     _=source_entity._cw._)
 
-    def update_config(self, source_entity, typedconfig):
-        """update configuration from source entity. `typedconfig` is config
-        properly typed with defaults set
-        """
-        if source_entity is not None:
-            self._entity_update(source_entity)
-        self.config = typedconfig
-
     def _entity_update(self, source_entity):
         source_entity.complete()
         if source_entity.url: