[sources] fix classes that inherit from AbstractSource (closes #2718669)
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 20 Feb 2013 16:13:21 +0100
changeset 8707 28cbd267e96b
parent 8706 e362054d9701
child 8708 78a99960286a
[sources] fix classes that inherit from AbstractSource (closes #2718669)
server/sources/ldapuser.py
server/sources/native.py
server/sources/remoterql.py
--- a/server/sources/ldapuser.py	Thu Jan 24 10:28:49 2013 +0100
+++ b/server/sources/ldapuser.py	Wed Feb 20 16:13:21 2013 +0100
@@ -88,9 +88,9 @@
 
     def init(self, activated, source_entity):
         """method called by the repository once ready to handle request"""
+        super(LDAPUserSource, self).init(activated, source_entity)
         if activated:
             self.info('ldap init')
-            self._entity_update(source_entity)
             # set minimum period of 5min 1s (the additional second is to
             # minimize resonnance effet)
             if self.user_rev_attrs['email']:
--- a/server/sources/native.py	Thu Jan 24 10:28:49 2013 +0100
+++ b/server/sources/native.py	Wed Feb 20 16:13:21 2013 +0100
@@ -406,6 +406,7 @@
 
 
     def init(self, activated, source_entity):
+        super(NativeSQLSource, self).init(activated, source_entity)
         self.init_creating(source_entity._cw.cnxset)
         try:
             # test if 'asource' column exists
--- a/server/sources/remoterql.py	Thu Jan 24 10:28:49 2013 +0100
+++ b/server/sources/remoterql.py	Wed Feb 20 16:13:21 2013 +0100
@@ -136,6 +136,7 @@
 
     def init(self, activated, source_entity):
         """method called by the repository once ready to handle request"""
+        super(RemoteSource, self).init(activated, source_entity)
         self.load_mapping(source_entity._cw)
         if activated:
             interval = self.config['synchronization-interval']