[Mediawiki-l] TableEdit version 0.2
Jim Hu
jimhu at tamu.edu
Thu Apr 12 04:13:41 UTC 2007
As I get ready for version 0.3, I realized that there is a
potentially serious problem for users of my TableEdit extension (hey,
I did mark it as experimental!!). The problem is related to
exporting and importing dumps.
While tables will be preserved when importing a dump from a wiki that
uses TableEdit, when a user tries to click on the Edit link, bad
things are likely to happen. In the best case, the recipient wiki
will not have TableEdit installed and there will just be a 404
error. If TableEdit is installed, the most likely outcome is that
the box_id and pagename will not match what is stored in the database
and TableEdit will refuse to do the edit on the imported page.
This is because TableEdit stores box and row information in an
external database and marks the position of the table in each page
with comments <!--box id=N--> where N is the primary key in the box
table of the wikibox_db external database. The box table also stores
the page_title and namespace, and checks that the page sending the
edit request is the original home of the box. Hmm...on reflection
this means that moving the page will break it too. I think I can fix
that by following redirects and revising the database on the next
save. But the imported page problem has me stumped.
Suggestions for how to solve this are welcomed!
Jim
On Apr 6, 2007, at 4:29 PM, Jim Hu wrote:
> Version 0.2 (still experimental!!) of my Table Editing extension is
> now available
>
> http://www.mediawiki.org/wiki/Extension:TableEdit
>
> For those who missed 0.1, TableEdit lets you put a tag in a wiki
> page, which is saved as a "Create Table Here" link to a Special page,
> where the user can use forms to build a table without worrying about
> wiki markup. The tables that are put back in the wiki page have an
> Edit link that allows you to load the table back into the Special
> page for further editing.
>
> Changes:
> * Now uses $_SESSION for persistence prior to saving to the database
> instead of cluttering the page itself with serialized data.
> * Schema change to support edit conflict handling
> * Rudimentary edit conflict handling
> * Now allows you to rotate the table to switch headings to be either
> on top or on the left.
> * You can start with a table in either orientation by using
> <newTableEdit/> for headings on top or <newVTableEdit/> for headings
> on the side.
> * Various bug fixes...more probably introduced in the process.
>
> Works for me on MW 1.83 and MW 1.93 on MacOSX with the entropy (Marc
> Liyanage) php5.1.2 and MySQL 4.026 or MySQL 5.0.24-standard.
> Presumably works on other setups.
> =====================================
> Jim Hu
> Associate Professor
> Dept. of Biochemistry and Biophysics
> 2128 TAMU
> Texas A&M Univ.
> College Station, TX 77843-2128
> 979-862-4054
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
More information about the MediaWiki-l
mailing list