updated packages

5 views
Skip to first unread message

Ralf Schmitt

unread,
Apr 9, 2009, 10:16:24 AM4/9/09
to mw...@googlegroups.com
Hi all,

I've just uploaded new packages of mwlib and mwlib.rl to PyPI.
The main change is that we have completely rewritten the parser.
Upgrading can be done by running the following commands:

easy_install -U mwlib
easy_install -U mwlib.rl

Regards,
- Ralf

Bjoern

unread,
Apr 19, 2009, 8:05:35 AM4/19/09
to mwlib
Hi all, hi Ralf,

I've just upgraded to the latest 'Collection' extension (49642).

When going to the Special:Book page, as well as when forcing a re-
render, I get "Version mismatch between Javascript and php code.
Contact admin to fix ..."

Best,
Bjoern

Bjoern

unread,
Apr 19, 2009, 8:28:49 AM4/19/09
to mwlib
Hi again,

possible also related to this: are the chapter headings gone?

I can no longer insert chapters with

;chaptername

in the book definition. It also seems that in Special:Book, I can no
longer add chapters.

All the best,
Bjoern

On Apr 9, 3:16 pm, "Ralf Schmitt" <r...@brainbot.com> wrote:

Johannes Beigel

unread,
Apr 20, 2009, 9:54:38 AM4/20/09
to mw...@googlegroups.com
On 19.04.2009, at 14:05, Bjoern wrote:
> I've just upgraded to the latest 'Collection' extension (49642).
>
> When going to the Special:Book page, as well as when forcing a re-
> render, I get "Version mismatch between Javascript and php code.
> Contact admin to fix ..."

(Usually it shouldn't be needed, but) Does a "force-reload" of the
special page in you browser help?

-- Johannes

Johannes Beigel

unread,
Apr 20, 2009, 10:00:18 AM4/20/09
to mw...@googlegroups.com
On 19.04.2009, at 14:28, Bjoern wrote:
> possible also related to this: are the chapter headings gone?
>
> I can no longer insert chapters with
>
> ;chaptername
>
> in the book definition.

What happens exactly? This should work (I tested it with the most
current version) and it shouldn't require JavaScript either (see below).

> It also seems that in Special:Book, I can no longer add chapters.

Yes, that's most probably related to your other problem (version
mismatch): When the the versions do not match, the special page
essentially behaves as if JavaScript had been disabled (And without
JS, adding chapters isn't possible; see http://code.pediapress.com/wiki/ticket/337
, last comment). As soon as the version mismatch is resolved, this
should work.

-- Johannes

Bjoern

unread,
Apr 20, 2009, 4:45:39 PM4/20/09
to mwlib
Hi Johannes,

Sorry about the javascript - the problem seems to have gone away, and
I guess a force reload would have fixed it!

On Apr 20, 3:00 pm, Johannes Beigel <johannes.bei...@brainbot.com>
wrote:
> On 19.04.2009, at 14:28, Bjoern wrote:
>
> > possible also related to this: are the chapter headings gone?
>
> > I can no longer insert chapters with
>
> >    ;chaptername
>
> > in the book definition.
>
> What happens exactly? This should work (I tested it with the most  
> current version) and it shouldn't require JavaScript either (see below).

For instance, I've got a book definition here:
http://www.ict4e.net/wiki/Collection/issue1/book

;Preface
:[[Collection/issue1/include]]
;Chapter
:[[Collection/issue1/chapter]]
;Appendix
:[[Collection/issue1/include]]
:[[Collection/issue1/include]]

If I print the book to pdf the chapters don't come out, i.e. Preface/
Chapter/Appendix don't come out in the pdf.

The result is the same via the make pdf link on the page, or via
loading the book, and then printing to pdf. It also is the case of I
randomly assemble a book on the wiki and insert chapters via
javascript. (I've just updated the collection extension again, to
version 49675, though I suspect this isn't really to do with the
collection extension, but must be to do with the server.)

All the best,
Bjoern

Johannes Beigel

unread,
Apr 21, 2009, 5:46:20 AM4/21/09
to mw...@googlegroups.com
>> On 19.04.2009, at 14:28, Bjoern wrote:
>>> possible also related to this: are the chapter headings gone?

This was a bug. It's fixed in mwlib 0.10.4, which I've just uploaded
to PyPI:

http://pypi.python.org/pypi/mwlib/0.10.4

I've updated the software on the Wikimedia server and on our public
render server.

Thanks for the report!

-- Johannes

Bjoern

unread,
Apr 22, 2009, 8:55:48 AM4/22/09
to mwlib
Hi Johannes,

Thanks for fixing this!

Best,
Bjoern

On Apr 21, 10:46 am, Johannes Beigel <johannes.bei...@brainbot.com>
wrote:
Reply all
Reply to author
Forward
0 new messages