Bug in MeshTool

Georg Bauer <gb-BRhJDZTO+/[email protected]> Tue, 28 Dec 2004 18:04:52 +0100
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

There is a bug in the MeshTool: when you have wiki pages with Umlauts=20
or other non-ASCII chars in their title and link to them, the ID of=20
those pages is the title without umlauts. But the MeshTool tries to=20
find those pages with umlauts. And then it doesn't find them (of=20
course, since the stored IDs are different) and raises a KeyError with=20=

the link text. But that link text contains unicode chars (as stuff is=20
in unicode at that time because of docutils). And so the raised error=20
can't be shown correctly as it contains unicode stuff, too. Boom.

This happened to Jutta in MeshTool.py in line 209 in the mark() method.=20=

I changed the code to not throw an Exception in that case locally on=20
her machine, but that's no solution but just another bug masking the=20
real bug ;-)

Could you look into the stuff and check what really should be done? The=20=

scenario is as follows:

WikiPages in this test case:

index - this one has a stray link like Urlaubsbew=E4sserung_
urlaubsbewsserung - this is the page to link to, the '=E4' is removed=20
(the WikiTool does this)

Trying to edit the index wiki page produces the broken KeyError in line=20=

209 of MeshTool.py

bye, Georg
- --=20
gpg Key unter http://hugo.muensterland.org/gems/gbauer.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFB0ZI1F23K68kpzdoRAjJVAJ9xdLj6DsYGvU+6kNC1t9cVB9sK7wCdGtkA
x1Di2lWDkzTTx88fouz/SYQ=3D
=3DTblg
-----END PGP SIGNATURE-----