AW: [Twisted-Python] Some Question about on woven and rpy/page.Page

Martin Möllenbeck Martin.Moellenbeck at t-online.de
Sat Jun 28 09:33:17 MDT 2003


Hi Donovan,

this was the right answer, it's the way.

Thanks a lot.

Martin

-----Ursprüngliche Nachricht-----
Von: twisted-python-admin at twistedmatrix.com
[mailto:twisted-python-admin at twistedmatrix.com] Im Auftrag von Donovan
Preston
Gesendet: Samstag, 28. Juni 2003 05:13
An: twisted-python at twistedmatrix.com
Betreff: Re: [Twisted-Python] Some Question about on woven and
rpy/page.Page


(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


_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list