waterbug at beeblebrox.gsfc.nasa.gov
Mon Dec 9 15:29:29 EST 2002
Yet another sophomoric question :^) ...
The only way I've come up with to pass in a value to
adbapi.Augmentation.operationDone(done) is as follows:
def addThingy(self, whatever):
args = munge(whatever) # make some sql, etc.
out = self.runOperation(*args)
out.addCallback(lambda x: self.operationDone('addThingy'))
This works, but is there a more orthodox(/elegant) way? I've
tried many permutations of using callbackArgs, without success.
BTW, thanks for all the new twisted stuff ... I'm just starting
to use lore ... very cool!
More information about the Twisted-Python