[Twisted-Python] callback and errback

Hi list, I have a "stupid" problem with the adbapi (deferred): d = self._db.runQuery("SELECT * FROM not_exists_table") d.addCallback(self._back_getTables, callBack) d.addErrback(self._errBack, errBack) File "C:\Python23\lib\site-packages\twisted\internet\defer.py", line 294, in _startRunCallbacks self._runCallbacks() --- <exception caught here> --- File "C:\Python23\lib\site-packages\twisted\internet\defer.py", line 307, in _runCallbacks self.result = callback(self.result, *args, **kw) exceptions.TypeError: passthru() takes exactly 1 argument (2 given) Why with addCallback I can pass my values and with addErrback no? And if I use: d.addCallbacks(self._back_getTables, self._errBack, callbackArgs=callBack, errbackArgs=errBack) File "C:\Python23\lib\site-packages\twisted\internet\defer.py", line 294, in _startRunCallbacks self._runCallbacks() --- <exception caught here> --- File "C:\Python23\lib\site-packages\twisted\internet\defer.py", line 307, in _runCallbacks self.result = callback(self.result, *args, **kw) exceptions.TypeError: passthru() argument after * must be a sequence What this mean? OS: win2k/debian 3.1 py: 2.3.5 twisted: 2.1.0 The error happen on both OS Thanks, Michele
participants (1)
-
Michele Petrazzo