From j.her at t-online.de Tue Sep 18 08:42:03 2001 From: j.her at t-online.de (Juergen Hermann) Date: Tue Sep 18 08:42:03 2001 Subject: [Moin-devel] Billenium bug Message-ID: <15jMhk-1VHQcSC@fwd04.sul.t-online.com> Hi! ... and they said it's unlikely for bugs to occur. ;) This fixes problems with the diff in RecentChanges and the "PageInfo" function. You can either cvs update, or apply the patch to 0.9 manually. Or wait for the next release within the next few days. @@ -144,9 +144,14 @@ else: pagename = ".*?" backup_re = re.compile(r'^%s\.\d+(\.\d+)?$' % (pagename,)) - oldversions = filter(backup_re.match, os.listdir(backup_dir)) + oldversions = [] + for file in os.listdir(backup_dir): + if not backup_re.match(file): continue + data = file.split('.', 1) + oldversions.append(((data[0], float(data[1])), file)) oldversions.sort() oldversions.reverse() + oldversions = [x[1] for x in oldversions] else: oldversions = None From jh at web.de Fri Sep 28 09:14:02 2001 From: jh at web.de (Juergen Hermann) Date: Fri Sep 28 09:14:02 2001 Subject: [Moin-devel] Re: [Moin-user] Billenium bug In-Reply-To: Message-ID: On Thu, 27 Sep 2001 19:42:21 -0700 (PDT), Adam Shand wrote: >> + oldversions = [x[1] for x in oldversions] > >this patch, specifically the line above breaks python 1.5.2 support. This is not the only such line, just at an unavoidable place. ;) Since I work with >= 2.0 at work and at home and use the features of it, I'm inclined to drop 1.5 support for the next release. Otherwise I always have to restrict myself to use now familiar syntax. And the license issues that withheld updates in many linux distros etc. are now gone. Another reason to drop 1.5. Ciao, J?rgen