On 12/03/2012, at 10:24 PM, Giovanni Mascellani wrote: > On 12/03/2012 19:45, Bernard Blackham wrote: >> Actually I found a neat way to do it just by counting '/' chars in >> self.request.uri and it seems reasonably reliable. >> >> https://github.com/bblackham/cms/commit/2d454124ded8a2bed197ff895d318e58f6de3a11 > > As usual, thanks for the patch. There are two copy of the same code in > AWS.py and CWS.py. Any specific reason for this? I think it would be > better to put both of them in cms/server/__init__.py or similar. Yep, makes sense. Added into https://github.com/bblackham/cms/commits/urlroot Cheers, Bernard.