changeset 4399:9d161d1dbdfc

import.irclog: use irssi parser to format logs, mimetype added .irc to text/plain
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 29 Oct 2008 11:49:51 +0100
parents 1c373ce7f3a4
children 2f8d3b69945e
files MoinMoin/script/import/irclog.py MoinMoin/wikiutil.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/import/irclog.py	Wed Oct 29 05:46:36 2008 +0100
+++ b/MoinMoin/script/import/irclog.py	Wed Oct 29 11:49:51 2008 +0100
@@ -89,7 +89,7 @@
                     acl = ""
                     if self.options.acl:
                         acl = "#acl %s\n" % (self.options.acl, )
-                    p.saveText(acl + "#format plain\n" + decodeLinewise(fileObj.read()), 0)
+                    p.saveText(acl + "#format irc\n" + decodeLinewise(fileObj.read()), 0)
                 except PageEditor.Unchanged, e:
                     pass
                 except PageEditor.SaveError, e:
--- a/MoinMoin/wikiutil.py	Wed Oct 29 05:46:36 2008 +0100
+++ b/MoinMoin/wikiutil.py	Wed Oct 29 11:49:51 2008 +0100
@@ -933,7 +933,8 @@
  '.diff': 'text/x-diff',
  '.py': 'text/x-python',
  '.cfg': 'text/plain',
- '.conf': 'text/plain',
+ '.conf': 'text/plain', 
+ '.irc': 'text/plain',
 }
 [mimetypes.add_type(mimetype, ext, True) for ext, mimetype in MIMETYPES_MORE.items()]