Re: Comments on pyblosxom

will <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Wed, 6 Aug 2003, Joseph Reagle wrote:
>
> On Wednesday 06 August 2003 14:46, will wrote:
> > That's a bit of a cheesy thing.  What's going on is your data dir ends in
> > a /.  So it takes off one extra character.
>
> My datadir is set to have the "/"
>
> # Where are this blog's entries kept?
>   py['datadir'] = "/home/reagle/data/2web/reagle.org/joseph/weblog/"
>
> and the truncation isn't need as mem[len(root)+0 = 48 which includes the
> closing "/" ...?

Um...  I have no clue what you're saying.

You have the datadir ending in a / which causes the off-by-one issue in
pycategories.  If you remove that trailing /, then it'll work fine.

Further, this is something I meant to fix in pyblosxom a while back, but
then forgot.  I'm going to fix pyblosxom tonight so it won't matter
whether your datadir ends in a / or not because we'll clip the trailing /
if it's there so that we have a standard representation of the datadir
variable so that plugins know what to expect.

Hope that helps,

/will



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.