
Aug. 26, 2004
3:27 p.m.
David Bolen wrote:
I'm not sure I follow the need for the extra deferred. I would think that the following would work just as well:
class XMLRPCResponseClass():
def step1(self): return self.db.runQuery(blah).addCallback(self.step2)
def step2(self, result): if result == 'yadda': return 'This bit works' else: return self.db.runOperation(blah)
Ah, thanks - I didn't realize that would work. I might be able to refactor some code now :-). Abe