Bug#331250: num_entries limits number of entries displayed in a year archive

Norbert Tretkowski <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
tags 331250 +patch
tags 331250 +pending
thanks

* Norbert Tretkowski wrote:
> * Joey Hess wrote:
> > # How many entries should I show on the home page?
> > py['num_entries'] = 40
> >
> > This seems to also affect the number of entries that are put on
> > _any_ page, even an archive page for a year with many more than 40
> > entries is limited to 40 with this setting.
> >
> > (I'm using static rendering, if it matters.)
> 
> I'm also seeing this, and I'm not using static rendering.

Patch:

--- pyblosxom.py.orig   2006-01-28 23:00:01.000000000 +0100
+++ pyblosxom.py        2006-01-28 22:58:58.000000000 +0100
@@ -960,7 +960,7 @@
 
     # This is the maximum number of entries we can show (zero indicates show all entries)
     max = config.get("num_entries", 0)
-    if max:
+    if max and not data['pi_yr']:
         valid_list = valid_list[:max]
     valid_list = [x[1] for x in valid_list]

Regards, Norbert
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.