[Twisted-Python] PB, t.web tracebacks with Debian 1.1.0alpha

Itamar Shtull-Trauring itamar at itamarst.org
Thu Oct 16 10:50:37 EDT 2003

On Thu, 16 Oct 2003 04:29:42 -0400
Alex Levy <mesozoic at polynode.com> wrote:

> http://www.twistedmatrix.com/users/roundup.twistd/twisted/issue345

Code in RPYs is run each time the page is viewed. Thus, your resource
publisher is registering two producers on a transport, which is not
valid behaviour - it's supposed to unregister first.

1. have the line "cache()" on first line of RPY - this will prevent it
from reexecuting on each hit.
2. don't use RPYs.

Itamar Shtull-Trauring    http://itamarst.org/
Available for Python & Twisted consulting

More information about the Twisted-Python mailing list