cubicweb/sobjects/services.py
branch3.25
changeset 12146 d540defa0591
parent 12060 0cdf5fafd234
child 12346 b3f45d96a179
equal deleted inserted replaced
12145:752b94ed9748 12146:d540defa0591
   140     """
   140     """
   141     __regid__ = 'source-sync'
   141     __regid__ = 'source-sync'
   142     __select__ = Service.__select__ & match_user_groups('managers')
   142     __select__ = Service.__select__ & match_user_groups('managers')
   143 
   143 
   144     def call(self, source_eid):
   144     def call(self, source_eid):
   145         source = self._cw.repo.sources_by_eid[source_eid]
   145         source = self._cw.repo.source_by_eid(source_eid)
   146         result = source.pull_data(self._cw, force=True, async=True)
   146         result = source.pull_data(self._cw, force=True, async=True)
   147         return result['import_log_eid']
   147         return result['import_log_eid']