cubicweb/sobjects/services.py
branch3.26
changeset 12429 fe3ffa2fe5c3
parent 12146 d540defa0591
child 12567 26744ad37953
equal deleted inserted replaced
12428:744c66f41e96 12429:fe3ffa2fe5c3
   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.source_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, sync=False)
   147         return result['import_log_eid']
   147         return result['import_log_eid']