[Twisted-Python] Some Question about on woven and rpy/page.Page
Donovan Preston
dp at twistedmatrix.com
Fri Jun 27 21:13:00 MDT 2003
(Snip Martin having a problem with arguments not being in the request)
Change:
<form action="start.rpy">
To:
<form action="start.rpy/">
Woven automatically adds a slash to the end of urls which are rendered
by Page instances. This is to make writing relative links easier, by
ensuring consistent behavior. It does this by performing a redirect,
which loses the request arguments, because it causes the browser to
perform another request.
If you don't like this, and would prefer your urls to remain
trailing-slashless, add the following attribute to your Page subclass:
class MyPage(page.Page):
addSlash = False
Hope that helps.
dp
More information about the Twisted-Python
mailing list