[Twisted-Python] (Woven question)-->wchild_Xxx() called twice per hit
Itamar Shtull-Trauring
itamar at itamarst.org
Wed Nov 19 15:55:04 MST 2003
On Wed, 19 Nov 2003 14:51:58 -0800
Kevin Unger <kunger at intersight.com> wrote:
> When welcomePage's form is submitted, WelcomePage's wchild_nextPage()
> gets called twice. The first time it gets called with the expected
> request args, the second time the request args dictionary is empty.
Pages by default redirect so they have a / at the end. So you submit to
http://foo/nextPage and that gets redirected to http://foo/nextPage/.
Solutions:
1. submit to /nextPage/ from the start.
2. set addSlash=0 on NextPage.
--
Itamar Shtull-Trauring http://itamarst.org/
Available for Python & Twisted consulting
More information about the Twisted-Python
mailing list