[Mailman-Users] Archive page not showing dates properly

Peter Wetz wetz.peter at gmail.com
Mon Aug 24 14:09:56 CEST 2015


thanks for the help.
what do I have to do after editing Mailman/Archiver/HyperArch.py as
suggested by you? Or: How can I test, if the changes actually changed
something?

Because right now, I added your changes and sent a testmail to the list.
The mail gets added to the archive, however, the date still looks as in the
screenshot posted in my initial posting.



On Fri, Aug 21, 2015 at 4:59 PM, Mark Sapiro <mark at 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 at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
> ------------------------------------------------------
> Mailman-Users mailing list Mailman-Users at 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
>


More information about the Mailman-Users mailing list