[Twisted-web] Problem using deferreds in a freeform autocallable

Gavrie Philipson twisted-web@twistedmatrix.com
Thu, 25 Dec 2003 14:23:48 +0200


I just discovered that this does work correctly with a version of Nevow =
that is a few days old.=20
It's only the latest version (CVS HEAD of Quotient) that doesn't work.

Life on the bleedin' edge...

-- Gavrie.

> -----Original Message-----
> From: Gavrie Philipson=20
> Sent: Thursday, December 25, 2003 13:43
> To: twisted-web@twistedmatrix.com
> Subject: [Twisted-web] Problem using deferreds in a freeform=20
> autocallable
>=20
>=20
> Hi,
>=20
> I have a freeform autocallable method which uses a deferred:=20
> The method=20
> needs to call a function that returns a deferred, and continue only=20
> after the deferred fires.
>=20
> Unfortunately, I cannot get it to work: When I return a deferred from=20
> the autocallable, I get a traceback which doesn't make sense to me.
>=20
> A test program and the associated traceback are attached.
>=20
> Is this supposed to work? If not, how can I perform a deferred action=20
> when posting a form?
>=20
> Thanks,
>=20
> -- Gavrie.
>=20