[Moin-devel] slide mode

Reimar Bauer R.Bauer at fz-juelich.de
Thu Oct 16 19:59:06 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Waldmann wrote:
|> The end counter has 0 this is wrong. I am sure if you rename on the
|> server all files with () inside the name then it goes right.
|
|
| The problem is the parent page name being used "as is" as part of a regex.
|
| I have (hopefully) fixed that, could you please test it?
|
| Here is the patch:
|
| ========================================================================
| RCS file: /cvsroot/moin/MoinMoin/macro/Navigation.py,v
| retrieving revision 1.11
| diff -u -r1.11 Navigation.py
| --- Navigation.py       13 Apr 2003 07:57:50 -0000      1.11
| +++ Navigation.py       13 Oct 2003 17:19:23 -0000
| @@ -189,7 +189,11 @@
|          # prepare link generation
|          result = []
|          labels = ['^', '|<', '<<', '>>', '>|']
| -        pos, size, links = _getLinks(self.macro.request, self.pagename,
| '^%s/' % parent)
| +        filter_regex = '^%s/' % parent
| +        # some characters shouldn't get into the RE unescaped
| +        for chr in "()":
| +            filter_regex = filter_regex.replace(chr, '\\'+chr)
| +        pos, size, links = _getLinks(self.macro.request, self.pagename,
| filter_regex)
|          pos += 1
|          links = zip(labels, (parent,) + links)
| ========================================================================
|
| Some lines may be wrapped.
|
|

Dear Thomas

I am not able to test the actual 1.1 version at the moment.
But this doesn't matter in this case.

I did the changes and this works!

Thanks

Reimar






- --
Forschungszentrum Juelich
email: R.Bauer at fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
==================================================================
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/j1nZ5aOc3Q9hk/kRAiQAAJwPdVJ+fdLExTNOdUQ4J03bAF73sACfZ0p0
I5R+A4Dw62sSy4laSg8F/Dk=
=+xIk
-----END PGP SIGNATURE-----





More information about the Moin-devel mailing list