[Twisted-Python] Woven Model extreme pain
James Y Knight
foom at fuhm.net
Thu Oct 2 11:42:52 MDT 2003
More ARRRRRRRRRRGGGGGGGH.
Returning a Deferred from submodelFactory doesn't seem to work
*either*, if you then want to get a submodel of that.
E.g simplified:
def result1(self, d):
d.callback((1,3,4,5))
def wmfactory_foo(self, request):
d = defer.Deferred()
reactor.callLater(1000000, self.result1, d)
return d
If you then ask for a model="foo/0", twisted claims there is no such
model, immediately. so it's not even trying to deal with the deferred.
arrrrgh.
Is none of this tested? I can't believe I'm only person who wants to do
this?
This is really making me want to give up. It seems nice but nothing
works!
James
More information about the Twisted-Python
mailing list