[Twisted-web] My solution to appending slashes to resources

Phil Mayers p.mayers at imperial.ac.uk
Wed Oct 7 12:06:45 EDT 2009


Mark Wright wrote:
> (I didn't reply to my original message because the mailing list never
> sent it to me.  Yet, I can see it at the archives here
> http://twistedmatrix.com/pipermail/twisted-web/2009-October/004334.html
> - is anyone getting these messages?)

Yes. Mailman doesn't send the mail to the sender by default, hence you 
not getting a copy.

> 
> A bit of metaprogramming to the rescue.  For those Resource classes
> that you want to append slashes automatically, this seems to work.
> Can anyone see any problems with this?

It's... an awful lot of effort, but hey - if trailing slashes are that 
important to you, knock yourself out ;o)



More information about the Twisted-web mailing list