[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-users
Subject:    Re: [Mailman-Users] Archive page not showing dates properly
From:       Peter Wetz <wetz.peter () gmail ! com>
Date:       2015-08-24 15:06:36
Message-ID: CAGmyAkBH-e6=+wHOQvdvYOs2qDh6msoyEwvcbx5qizVFb4dU1A () mail ! gmail ! com
[Download RAW message or body]

> presumably, some Mailman upgrade removed the modification to HyperArch.py.

Is there some sort of best practice on how to avoid this situation? That
is, how to avoid modification of HyperArch.py through some Mailman upgrade?

best,
Peter

On Fri, Aug 21, 2015 at 4:59 PM, Mark Sapiro <mark@msapiro.net> wrote:

> On 08/21/2015 02:29 AM, Peter Wetz wrote:
> > On the archive page of my mailman list the dates are not showing up
> > properly. It looks like this: http://i.imgur.com/IrmWnie.png
> >
> > As you can see, instead of the date a string "%(date)s" is shown. It is
> > also worth noting, that it already worked properly. However, suddenly (at
> > least I cannot state when exactly) it stopped working and since then
> dates
> > are shown as seen in the screenshot.
>
>
> The standard Mailman archidxentry.html template does not have a %(date)s
> substitution in it. Presumably, your installation/list has a custom
> version of this template (<http://wiki.list.org/x/4030605>) which adds
> the %(date)s substitution and along with this, modifications to
> Mailman/Archiver/HyperArch.py to add a 'date' entry to the interpolation
> dictionary for this template, and also presumably, some Mailman upgrade
> removed the modification to HyperArch.py.
>
>
> > How can I fix this problem?
>
>
> Replace the current Mailman/Archiver/HyperArch.py with the one that was
> there when it worked, or in the definition of write_index_entry at about
> line 1073 where you see
>
>         d = {
>             'filename': urllib.quote(article.filename),
>             'subject':  subject,
>             'sequence': article.sequence,
>             'author':   author
>         }
>
> change it to
>
>         d = {
>             'filename': urllib.quote(article.filename),
>             'subject':  subject,
>             'sequence': article.sequence,
>             'date':     article.datestr,
>             'author':   author
>         }
>
> --
> Mark Sapiro <mark@msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
> ------------------------------------------------------
> Mailman-Users mailing list Mailman-Users@python.org
> https://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Security Policy: http://wiki.list.org/x/QIA9
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe:
> https://mail.python.org/mailman/options/mailman-users/wetz.peter%40gmail.com
>
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: https://mail.python.org/mailman/options/mailman-users/mailman-users%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic