changeset 241:27757d338074

Modified filename_function, really. imported from: moin--main--1.5--patch-244
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Sun, 27 Nov 2005 11:16:27 +0000
parents 983e3a3a9b9e
children 67fd0e8a3be2
files MoinMoin/scripts/import/importIRCLogs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/scripts/import/importIRCLogs.py	Sun Nov 27 11:13:33 2005 +0000
+++ b/MoinMoin/scripts/import/importIRCLogs.py	Sun Nov 27 11:16:27 2005 +0000
@@ -24,7 +24,7 @@
 # this function generates a pagename from the file name
 def filename_function(filename):
     splitted = filename.split('.')
-    return '/'.join(splitted[0] + [x.replace('-', '/') for x in splitted[0:-1]])
+    return '/'.join([splitted[0]] + [x.replace('-', '/') for x in splitted[1:-1]])
 ### end of configuration
 
 import os, sys