[Twisted-Python] Woven trailing slashes
Donovan Preston
dp at twistedmatrix.com
Wed May 14 09:29:59 MDT 2003
On Tuesday, May 13, 2003, at 07:06 PM, Eric Holm wrote:
>> resource = page.Page("foo")
>> resource.addSlash = 0
>>
> That did the trick, thanks!
Great! :)
>
>
>> The default behavior of Woven is now to automatically add a slash
>> because it makes creating relative links far easier, ironically ;-)
>>
> So I'm doing things the hard way? Hmmmm...
Theoretically... URI design is complicated business.
>
>
> Speaking of links, when I use the Link widget, I get the following
> (seemingly harmless, but distracting nonetheless) warning:
>
> ...\twisted\web\woven\model.py:428: UserWarning: getSubmodel must get
> a request argument now
> warnings.warn("getSubmodel must get a request argument now")
>
> for whatever that's worth.
Thanks for the report. Link is relying on deprecated behavior, I'll fix
it.
Donovan
More information about the Twisted-Python
mailing list