FAQ
hello everyone from France !
;-)

done the 'direct upgrade' from 2.1.9 to 2.1.11 some time ago and just noticed
something broken concerning the public archives (pipermail)
:-(

IMHO, there are some junked data, on ALL the HTML listinfo pages of the "public
lists" (lists with public archives), that break the URL link to them

i think there's a pb with a bad {} substitution, perhaps done in python scripts
or in my mailman configuration file

to be more precise, here is a piece of broken HTML code
(https://mailman.onera/mailman/listinfo/test) :

...
<p> Pour voir tous les messages pass&eacute;s de la liste, visitez les
<a href="https://{'listname': 'test',
'hostname':'mailman.onera:443'}:443/pipermail/test/">
Archives de test</a>.
</p>
...

and how it would be nice to have it :

...
<p> Pour voir tous les messages pass&eacute;s de la liste, visitez les
<a href="https://mailman.onera:443/pipermail/test/">
Archives de test</a>.
</p>
...

all ideas and suggestions will be welcomed
sincerely yours

Search Discussions

  • Mark Sapiro at Jul 28, 2009 at 3:08 pm

    geraud.guibert at free.fr wrote:
    to be more precise, here is a piece of broken HTML code
    (https://mailman.onera/mailman/listinfo/test) :

    ...
    <p> Pour voir tous les messages pass&eacute;s de la liste, visitez les
    <a href="https://{'listname': 'test',
    'hostname':'mailman.onera:443'}:443/pipermail/test/">
    Archives de test</a>.
    </p>
    ...
    It appears that you have overridden PUBLIC_ARCHIVE_URL in mm_cfg.py and
    in so doing have changed the default

    PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'

    to something like

    PUBLIC_ARCHIVE_URL = 'http://%s:443/pipermail/%(listname)s'

    Replacing %(hostname)s with %s causes it to be interpolated with the
    entire dictionary {'listname': 'test',
    'hostname':'mailman.onera:443'} instead of just the 'hostname' value
    'mailman.onera:443'.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Jul 28, 2009 at 3:22 pm

    Mark Sapiro wrote:
    geraud.guibert at free.fr wrote:
    to be more precise, here is a piece of broken HTML code
    (https://mailman.onera/mailman/listinfo/test) :

    ...
    <p> Pour voir tous les messages pass&eacute;s de la liste, visitez les
    <a href="https://{'listname': 'test',
    'hostname':'mailman.onera:443'}:443/pipermail/test/">
    Archives de test</a>.
    </p>
    ...
    It appears that you have overridden PUBLIC_ARCHIVE_URL in mm_cfg.py and
    in so doing have changed the default

    PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'

    to something like

    PUBLIC_ARCHIVE_URL = 'http://%s:443/pipermail/%(listname)s'

    Replacing %(hostname)s with %s causes it to be interpolated with the
    entire dictionary {'listname': 'test',
    'hostname':'mailman.onera:443'} instead of just the 'hostname' value
    'mailman.onera:443'.

    Also, It appears you have the port in both the pattern and the url
    host. The preferred way to specify ports is in the patterns
    PUBLIC_ARCHIVE_URL and DEFAULT_URL_PATTERN, and not in the url host.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedJul 27, '09 at 3:46p
activeJul 28, '09 at 3:22p
posts3
users2
websitelist.org

2 users in discussion

Mark Sapiro: 2 posts Geraud Guibert: 1 post

People

Translate

site design / logo © 2022 Grokbase