[Moin-user] Billenium bug
Juergen Hermann
j.her at t-online.de
Tue Sep 18 08:42:03 EDT 2001
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
More information about the Moin-user
mailing list