changeset 243:d6a31875fae9

IrcLogImporter: strip leading # chars from log name imported from: moin--main--1.5--patch-246
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 27 Nov 2005 12:16:18 +0000
parents 67fd0e8a3be2
children 42f749b0d8bb
files MoinMoin/scripts/import/IrcLogImporter.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/scripts/import/IrcLogImporter.py	Sun Nov 27 11:46:00 2005 +0000
+++ b/MoinMoin/scripts/import/IrcLogImporter.py	Sun Nov 27 12:16:18 2005 +0000
@@ -24,6 +24,7 @@
 
 # this function generates a pagename from the file name
 def filename_function(filename):
+    filename = filename.lstrip('#')
     splitted = filename.split('.')
     return '/'.join(splitted[0:2])
 ### end of configuration