- i am very interested in these things -- are you made some progress so far? http://www.kl3tte.de 2007-12-03
- I don't know if this is a stupid question, but is it meant to be used through ftp - uploading the .txt files directly to your webserver's
pmwikiinstallation/importdirectory or is there some sort of special page where they can be imported besides the
?action=importwhich checks the import dir for new files?
- This can also be used as a way to mass-delete one or more (!) files. Simply create a text file with the single word "delete" (no quotes; be aware that your site may have customized this word) and then copy it to have the same names as the files you want to delete. (I was deleting a bunch of files in wikiforms so they happened to be named 01000 to 01122 which made it very easy for a script to generate the files.) Upload these to the import directory and it will process through... Peter Bowers December 19, 2007, at 02:43 AM
- I'm working too on this concept. It's very useful to synchronize in the two ways. I test your scripts: it renames the txt file whith then date of import but if another application want to modify the file, it does not longer exist. I want to try using pmwiki as a frontend for PyGTD. It's necessary to update data from the txt files but also impact the txt files (with the same name) for PyGTD processing. Howto ? ctime ? FrançoisElie April 27, 2008
- XES September 15, 2013, at 09:41 PM I've used this script to import a ~300 question "Database" on to a website. Now I had to remove the database to reimport everything and I'm hitting a snag. Same script, same style of text files, same data in some cases -- but the import is incorrect after page 190 and won't import correctly after that point. It's not the timeout 15 second limit built into the script: if I try to import 1 file or 10 files at a time (like 10 files at the end of the list), it still fails for the pages named Quiz.Question-190 and up. I can add the page straight from the text file by hand -> drop the text into the webform and everything's fine. Bizarre. Some of the wiki.d files got screwed up -- the text that was supposed to be imported got garbled into the lines of the wiki.d text -- but most of them just have a text= line that's blank in them.
Here's one of the screwed-up files:
version=pmwiki-2.2.52 ordered=1 urlencoded=1 (:b:two club lengths from the OB line:)= agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36 author=ImportText charset=ISO-8859-1 host=126.96.36.199 name=Quiz.Question-279 (:answer:c. where the original shot was struck:)= rev=2 (:c:where the original shot was struck:)= targets= (:d:none of the above:)= text= time=1379296940 <feff>= (:a:where it crossed the OB line:)= (:cat:rules:)= (:TF:false:)= (:q:If your ball crosses the out-of-bounds line, where is the replacement dropped?:)= author:1379296940=ImportText diff:1379296940:1379296393:= host:1379296940=188.8.131.52 author:1379296393=ImportText diff:1379296393:1379296393:= host:1379296393=184.108.40.206
This screwed-up file contains imported text from more than one of the text documents. Wacky. The (:cat: line is the first line of text in a file.