Hi,
Could you guys please give me an update of the Import/Export pages status ? So far Export seems to be enabled in 1.3/1.4. Export is disabled in 1.3. Is there some Export code out there (in 1.5 ?) that I could safely move/use to my 1.3 ? (yes I know it would be experimental).
I'm kinda working from time to time on an extension that would be a front-end to import/export. Basically it renders a form where you can add/combine search conditions, and the extension finds the pages matching those conditions (say, all pages matching a give title pattern, or pages that have been contributed by a given author, or pages that were last contributed a given time ago, or pages belonging to one or more template/category, etc.). That part is done. Then it feeds the list of pages to the current Export special page. It will also find all medias used by those pages, and allow the user to create a Zip archive with the exported page (an XML file), and the medias.
But I need the Import part now to feed the XML file to ;) I assumed I could detect the Wikimedia version, and use the special Import page if it exists, and if not, defaults to some code that would be a copy of something working in 1.5 ?
Thanks
-- Sebastien Barre
On Mon, 14 Mar 2005 16:38:43 -0500, Sebastien BARRE sebastien.barre@kitware.com wrote:
But I need the Import part now to feed the XML file to ;) I assumed I could detect the Wikimedia version, and use the special Import page if it exists, and if not, defaults to some code that would be a copy of something working in 1.5 ?
I don't actually know the answer to your question, but I wanted to point out 3 things - in order of rapidly decreasing importance, they are: 1) Any feature for importing into >=1.5 will be non-trivial to make operate successfully with <=1.4, because the database schema has been radically altered. That doesn't mean there'd be no way of fixing it up whatsoever, but it certainly wouldn't be a case of dropping it in place and it working, however flakily.
2) You made the common mistake of confusing the terms "Wikimedia" (an organisation promoting free knowledge) and "MediaWiki" (a piece of software). See http://meta.wikimedia.org/wiki/Names 3) In your first paragraph, I think some of the places you said "Export", you meant to say "Import"; this made it a bit confusing to read, so I thought I'd warn you in case you get any baffled responses.
At 3/14/2005 10:01 PM, Rowan Collins wrote:
On Mon, 14 Mar 2005 16:38:43 -0500, Sebastien BARRE
- Any feature for importing into >=1.5 will be non-trivial to make
operate successfully with <=1.4, because the database schema has been radically altered.
Damn, I knew I would hear that :) So is there any piece of *import* code in 1.3/1.4 that is known to work (kinda) ?
- You made the common mistake of confusing the terms "Wikimedia" (an
organisation promoting free knowledge) and "MediaWiki" (a piece of software). See http://meta.wikimedia.org/wiki/Names
Hey, I'm not the one who picked the names :) This *is* confusing.
- In your first paragraph, I think some of the places you said
"Export", you meant to say "Import"; this made it a bit confusing to read, so I thought I'd warn you in case you get any baffled responses.
You are right. I meant: Export is enabled everywhere. Import is not in 1.3/1.4. I need Import. Thanks
-- Sebastien Barre
On 14 Mar 2005, at 14:12, Sebastien BARRE wrote:
So is there any piece of *import* code in 1.3/1.4 that is known to work (kinda) ?
What about Unix tools?
I used a comma separated values (CSV) file to import data into mw_users, after some light regex work.
I have not tried the same thing with mw_cur, but there's no reason it shouldn't work. Just be sure cur_id (primary key) is set to auto_increment (the installation I used did not have it that way) and that the various fields conform to what is expected of them.
:::: Terrorism is the best political weapon, for nothing drives people harder than a fear of sudden death. -- Adolf Hitler :::: Jan Steinman http://www.Bytesmiths.com
mediawiki-l@lists.wikimedia.org