comparison src/core/sat_main.py @ 1189:7d640c303140

core (disco): added a timeout to get items
author Goffi <goffi@goffi.org>
date Mon, 08 Sep 2014 21:23:21 +0200
parents 8cdb97e89d9b
children 9c17bd37e6e5
comparison
equal deleted inserted replaced
1188:bf2927e6a0f5 1189:7d640c303140
286 for idx, (success, result) in enumerate(results): 286 for idx, (success, result) in enumerate(results):
287 if not success: 287 if not success:
288 log.error("error (plugin %(name)s): %(failure)s" % 288 log.error("error (plugin %(name)s): %(failure)s" %
289 {'name': plugin_conn_cb[idx][0], 'failure': result}) 289 {'name': plugin_conn_cb[idx][0], 'failure': result})
290 290
291 yield list_d.addCallback(logPluginResults) 291 yield list_d.addCallback(logPluginResults) # FIXME: we should have a timeout here, and a way to know if a plugin freeze
292 # TODO: mesure time to launch of each plugin
292 293
293 def _authenticateProfile(self, password, profile): 294 def _authenticateProfile(self, password, profile):
294 """Authenticate the profile. 295 """Authenticate the profile.
295 296
296 @param password (string): the SàT profile password 297 @param password (string): the SàT profile password