[Twisted-Python] how to use --index= and doc vagueness
    Donovan Preston 
    dp at twistedmatrix.com
       
    Fri May  9 00:13:57 MDT 2003
    
    
  
On Thursday, May 8, 2003, at 10:55 PM, Donovan Preston wrote:
> This is a weird bug with the interaction of page.Page (which I assume 
> you are using) and --resource-script. If you create your resource and 
> then set the addSlash attribute to 0 it should help solve it:
>
> resource = page.Page("hello", templateFile="SomeTemplate.html")
> resource.addSlash = 0
>
> Basically, Page by default tries to redirect to the same url with a 
> slash at the end, but when a Page is the root resource the test that 
> tests to see if there is a slash is never True.
>
> Thomas Raschbacher had this problem before, I should have fixed this 
> properly earlier. Sorry about it.
Fixed in CVS. addSlash=0 should no longer be required in this case with 
CVS twisted.
Donovan
    
    
More information about the Twisted-Python
mailing list