Re: Pyblosxom permalinks are not permanent

Steve Hoelzer <[email protected]> Wed, 9 Sep 2009 16:14:13 -0500
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Fri, Jul 17, 2009 at 4:22 PM, Steve Hoelzer<[email protected]> wrote:
> On Fri, Jul 17, 2009 at 2:42 PM, will<[email protected]> wrote:
>> Steve Hoelzer wrote:
>>>
>>> What I'd really like to do is organize my files in folders like:
>>> /2009/Jul/17/filename. That would give me true permalinks and prevent
>>> the duplicate slug problem. But doing this interferes with PyBlosxom's
>>> date based archives, so it's not possible right now.
>>
>> Are you sure about that?  I'm pretty sure we solved that issue a few
>> versions ago.
>
> No, I'm not sure. I tried this a long time ago with PyBlosxom 1.4.1 (I
> think) and it didn't work then. I'm still on 1.4.1 now but I'll
> upgrade if this issue is fixed. If I get some time I'll experiment and
> report back.

I finally gave this a try and it does not work for me using the
current trunk (r1333). I had a very simple test case with three
entries in /2009/09/, py["num_entries"] = 2, and date archives with
month numbers turned on.

$ python pyblosxom-cmd staticrender
pyblosxom-cmd version 1.5 dev
Trying to import the config module....
Performing static rendering.
rendering 3 entries.
rendering 3 category indexes.
rendering 3 date indexes.
rendering 0 arbitrary urls.
(before) building 9 files.
building 9 files.
rendering '/2009/09/firstpost.html' ...
rendering '/2009/09/secondpost.html' ...
rendering '/2009/09/thirdpost.html' ...
rendering '/index.html' ...
rendering '/2009/index.html' ...
rendering '/2009/09/index.html' ...
rendering '/2009/index.html' ...
rendering '/2009/09/index.html' ...
rendering '/2009/09/09/index.html' ...

All of the index.html files contain the 2nd and 3rd post but not the
first. Date based archives should not be limited by py["num_entries"].

It also seems wasteful to render some pages twice (ex:
/2009/index.html). It would be nice to detect the duplicates and get
rid of them.

Steve

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july