Hello,
i just changed the "irclog" import script:

/../lib/python2.5/site-packages/MoinMoin/script/import # ls *.py
-rw-r--r--  1 root root  354 Jul  7  2007 __init__.py
-rw-r--r--  1 root root 3424 Jan  5 03:00 irclog.py
-rw-r--r--  1 root root 3229 Mar 14 10:41 files.py

/../lib/python2.5/site-packages/MoinMoin/script/import # diff irclog.py files.py
41,44c41
< This script pushes files from a directory into the wiki (to be exact: it
< pushes all except the last file, as this is maybe still written to in
< case of irc logs).
< One application is to use it to store IRC logs into the wiki.
---
> This script pushes files from a directory into the wiki
48c45
< General syntax: moin [options] import irclog [irclog-options]
---
> General syntax: moin [options] import files [files-options]
53c50
< [irclog-options] see below:
---
> [files-options] see below:
55c52
<        moin ... import irclog --author=JohnSmirh --file-dir=.
---
>        moin ... import files --author=JohnSmirh --file-dir=.
61c58
<             "--author", dest="author", default="IrcLogImporter",
---
>             "--author", dest="author", default="FilesImporter",
79c76
<                 #print "Pushing %r as %r" % (filename, pagename)
---
>                 print "Pushing %r as %r" % (filename, pagename)
92c89
< p.saveText(acl + "#format plain\n" + decodeLinewise(fileObj.read()), 0)
---
>                     p.saveText(acl + decodeLinewise(fileObj.read()), 0)
98c95
<         #print "Finished."
---
>         print "Finished."


Enough information?

I can now use the "moin ... import files ..." commando:

moin --config-dir=/../html/moin --wiki-url=wiki.example.org import files --author=myself --file-dir=/POSTINGS/FILES/



Lukasz Szybalski wrote:
On Fri, Mar 14, 2008 at 3:05 PM, Thomas <[EMAIL PROTECTED]> wrote:
Eduardo Mercovich schrieb:

What are your rules to import that? What is going to be a page? How
 > are your going to handle links? Or maybe you don't care about them?
 >
 > When monolitic documents are migrated into a wiki, the biggest
 > challenge is usually to transform all those individual pieces into a
 > good hypertext.

 I just import the files - if they need a special format-option or other
 handling, it needs to be contained in them already.

 In that case, i had html Files, which i begin with a "#format html" or a
  "{{{#!html" line ... that was added automatically when i create the
 files with other scripts.
 But i wanted to read them more easily - therefor the import to my wiki.

 Also, i had simple txt, that i included without special markup - if it
 contains WikiLinks, they will be usable ...

 That were about 6000 articles from some forums, that i moved into my
 Wiki for reference - they are added to one page for every same topic
 (between one and some dozend artivles per page) and also contain one
 line that references back to the original forum for each original
 article (posting).

  From the "import irclog" skript, i just removed the references to irc
 and the "format plain" ...
 Worked nice :)


So what was the final way to import these files?

Could you give instructions:
1. download ? what script
2. issue this command ?  what command

etc...
I am thinking about the same think so if you could tell us exactly
what you need to do that would be great.
Lucas



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to