Re: Comments on pyblosxom
will <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Dude. It's the same issue. "root" is config["datadir"] and your datadir variable likely has a trailing os.sep. Incidentally, I fixed pyblosxom so that it fixes the datadir before it starts really processing. And by "fixing" I really mean that it removes the trailing os.sep if there is one. So that should be in CVS if that's the codebase you're looking at. Hope-that-helps-your-off-by-one'ly yours, /will On Wed, 6 Aug 2003, Joseph Reagle wrote: > On Wednesday 06 August 2003 18:07, Wari Wahab wrote: > > Should work if you just mentioned conditionalhttp > > Ooops, my fault. So I'm playing with pycategories.py now, and now that > pycategories isn't working quite right. It's remove the first character of > the path: > > > urd:/home/reagle/data/2web/reagle.org/joseph> blog | g "##" > </div>### elist is ['est/foo.txt', 'est/one/one.txt', 'est/second.txt'] > > If I change line 58 and 64 to: > elist = [mem[len(root)+0:] for mem in elist] > > it seems to work: > > urd:/home/reagle/data/2web/reagle.org/joseph> blog | g "##" > </div>### elist is ['test/foo.txt', 'test/one/one.txt', 'test/second.txt'] > > Maybe this code was removing the first character of the mem presuming it had > a "/"? ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01