Re: How to make num_entries not apply to category views

tchomby <tchomby-gM/[email protected]> Tue, 7 Apr 2009 17:21:33 +0100
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
Alternatively a fix to the wbgpager.py plugin would also work for me.
I found that the previous revision (56) of the plugin works with
pyblosxom 1.4.3. That's revision 56 from Will's code repository:

http://bluesock.org/~willg/cgi-bin/devtrac.cgi/browser/trunk/pyblosxom/wbgpager.py?rev=58

So it would seem that the change the broke this plugin was revision 59:

> Implemented PyBlosxom version checking. If the version of PyBlosxom
> is pre-2.0, then we use the old sleight-of-hand-with-num_entries code.
> If the version of PyBlosxom is 2.0 or later, then we use the new
> truncatelist callback which is _way_ easier to do and much safer.

So I guess those of us using Pyblosxom 1.4.3 have nothing to lose from
using the previous revision of this plugin.

If I could see the diffs for Pyblosxom version 1.3.1 I might be able
to see for myself how to prevent num_entries from applying to category
pages. 1.3.1 was the release where the current num_entries behaviour
was introduced. Unfortunately sourceforge only seems to go back to
1.3.2.

On Tue, Apr 7, 2009 at 4:38 PM, tchomby <tchomby-gM/[email protected]> wrote:
> I __really__ want to see num_entries not apply to category pages on my
> blog asap. If someone will give me a hint for how I can modify
> pyblosxom to make this happen, Will said in an earlier thread that he
> thinks it's a one-liner, I will attempt it and if successful I'll
> reply with my patch.
>
> Background:
>
> As discussed in this thread:
>
> http://article.gmane.org/gmane.comp.web.pyblosxom.devel/2052
>
> the num_entries config variable should not apply to category pages,
> category pages should behave the same as year, month and day pages as
> in the original blosxom.
>
> With the wbgpager.py plugin currently broken:
>
> http://article.gmane.org/gmane.comp.web.pyblosxom.user/1924
>
> it is actually impossible right now to browse to an entry older than
> num_entries by category, using the links provided by the
> pycategories.py plugin for example, although you can browse to it by
> year if you have the pyarchive.py plugin.
>
>
> Thanks
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com